|
Post by riffelrw on Feb 11, 2021 4:49:31 GMT -8
Is anyone seeing a "page not implemented" error when first opening Dash from a different PC, by specifying the IP address:8050 like attached? Or is it specific to my setup? Note I'm using Pi-Hole as my DNS with a local DNS alias vs using IP address diredctly. Thanks
|
|
|
Post by SDL on Feb 14, 2021 9:47:45 GMT -8
Does the site come up when you push one of the other menu items?
This has something to do with the way dash stores persistent data. I've seen this a couple of times and haven't got enough data to figure it out.
BP
|
|
wshealy
Full Member
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on Feb 22, 2021 6:22:37 GMT -8
BP, What can we provide to help? I'm having it too. W
|
|
|
Post by SDL on Feb 22, 2021 14:10:51 GMT -8
Do the other pages work?
BP
|
|
|
Post by doxidad on Feb 23, 2021 3:16:46 GMT -8
I see this too. For me it only happens on the first time that the web page is accessed after the dash program (index.py) is started. Also, all the other pages work ok.
The routine that displays this is called in the display_page routine located in index.py where myLayout is defined
myLayout = NotImplPage() so it is called at least once to create the myLayout object
NotImplPage contains html.H1(children="Page Not Implemented")
|
|
wshealy
Full Member
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on Feb 23, 2021 14:57:55 GMT -8
Yes. other pages work. Dash seems like a tool for building Dashboards. Can you point me to the site? The one I found was for car games.
Wallace
|
|
|
Post by Jason on Feb 24, 2021 3:09:54 GMT -8
|
|
|
Post by True Finn on Mar 13, 2021 9:22:36 GMT -8
This was annoying also me, so I decided to do something about it. What I did was to change code in ~/SDL_Pi_SkyWeather2/dash_app/non_impl.py file. I replaced the following lines of code ... ################ # Page Functions ################ def NotImplPage(): Row1 = html.Div( [ dbc.Row( [ html.H1(children="Page Not Implemented") ] ), ] ) layout = dbc.Container([ Row1], className="ni", ) return layout ... with the lines below ... ################ # Page Functions ################ def NotImplPage(): Row1 = html.Div( [ dbc.Row( [ html.H1( children='Keurussaari Lahtiranta', style={ 'textAlign': 'center', 'color': colors['text'] } ) ] ), ] ) Row2 = html.Div(html.Figure( [ html.Div( children = [ html.Img( height=800, width=1400, src="/assets/DI_Init_Picture.jpg"), html.Figcaption("Sauna"), ] ), ] ), ) ######### # combined layout ######### layout = dbc.Container([ Row1, Row2 ], className="nip", ) return layoot Now I can, while waiting for the snow and ice to melt, watch an image from my summer cottage in my library, where my SkyWeather2 station also sits and stands still. I admit it's dirty programming, but I did it in haste. I'm planning to do recoding based on environment variables, so I don't have to do it again after each software upgrade. Jarmo
|
|
wshealy
Full Member
Posts: 187
Raspberry Pi: Yes
|
Post by wshealy on Mar 17, 2021 6:19:36 GMT -8
Why can't it default to Weather Page?
I'd also like 2 badges for each indoor sensor for Temp and Humidity. I don't find graph very intuitive for current readings.
Could there be a conf file to name indoor sensors like Bedroom etc.
W
|
|
|
Post by SDL on Mar 17, 2021 8:51:36 GMT -8
I'll add this to bug list. Irritating to us too. It just started happening. Some library change probably.
The badges thing I'll add at least to show all 8 units. Labeling, good idea, but you can add that easily in the dash_app itself.
BP
|
|