Tried everything, can't get CPU and DHT22 sensor temp to show on the picture #3097
Replies: 22 comments 58 replies
-
@Alex-developer any ideas? @luckylukedev, variables have to be defined with a "type" in |
Beta Was this translation helpful? Give feedback.
-
Correct, I did specify type as Number and then also tried with Text. You mean If I click "display sample data"? It shows me temp value, the same as if I check the cpu temp under System tab. Same happens with DHT22 data, sample data shows the same value I have written in text file. Just not working on the actual picture :( |
Beta Was this translation helpful? Give feedback.
-
Can you attach the |
Beta Was this translation helpful? Give feedback.
-
Adding to Erics request can you please attach the following two files ~/allsky/config/overlay/config/fields.json The '??' are displayed when the overlay module cannot determine what field type the field is. From memory I think the 'demo' data option defaults to 'text' if it cannot find the field type, this is on my list to fix already Thanks Alex |
Beta Was this translation helpful? Give feedback.
-
Here are the files: Did I do something wrong as the file user fields is empty? or maybe skipped a step? But the cpu_temp should work out of the box as its part of the module right? |
Beta Was this translation helpful? Give feedback.
-
For some reason the field has not been added. Try the following
|
Beta Was this translation helpful? Give feedback.
-
Yes I did this a couple of times already but the outcome is always the same, fields are not updated on the actual picture :( Something I noted: when I add variable from "All variables" to "Allsky variables" its there and I am able to add it to the overlay, but once I save the overlay changes and variable shows ??? on the actual picture, also the variable is removed from "Allsky variables" so I have to again move it from "All variables" if I want to try it again. Is there some workaround maybe? That I would manually add variables to userfields.json maybe? |
Beta Was this translation helpful? Give feedback.
-
After you add the variable try saving the changes in the variable manager then re open the variable manager to add the field. |
Beta Was this translation helpful? Give feedback.
-
This is the output after I ran your commands. (Sorry I didn't save the first ls -l output, jumped into the fix too fast): But sadly the fix didn't work :( I think I will just do complete clean install again and see if that fixes anything |
Beta Was this translation helpful? Give feedback.
-
It still said permission problem, ran your command and from what I can tell nothing changed, here is the error log after I ran the |
Beta Was this translation helpful? Give feedback.
-
@luckylukedev, are you still having the problem of the variable you add to the Allsky Variables tab disappearing after you leave the Overlay Editor and then return? And there are no longer any messages in /var/log/lighttpd/error.log? |
Beta Was this translation helpful? Give feedback.
-
yes, the problem with variable disappearing is still here. Here is what I have now in error.log file: |
Beta Was this translation helpful? Give feedback.
-
Hello, I have exactly the same problem, for example I can display the CPU temperature in the editor, but only ??? appear in the image. For me the variables also disappear when I leave the editor. I am also interested in a solution to the problem. |
Beta Was this translation helpful? Give feedback.
-
Can you run a couple of commands for me and add the output
I have just tried a clean install of Bullseye and its working fine for me with a DHT22 so I suspect some permissions have been messed up somewhere. There is an issue in the modules folder as the error from the lighttpd log is indicating that the module manager cannot create the backup copy of the modules flow Thanks Alex |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello, I hate to get involved in your conversation, but as I mentioned above, I have the same problems with the Pi Status Module. The overlay editor shows me the values such as: CPU temperature is correct in test mode, but in the live image I only see ??? I am also very interested in a solution. Greetings Michael |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
OpenWeatherMap Module |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'm getting the same issue without a resolution yet. Sorry to open what may be an older thread. I believe I am on the latest version of allsky. I am using the overlay module. I have a python script writing this data to an extra text file: WS7M_TEMP=41.36 The file is ~/allsky/config/overlay/extra/wxinfo.txt When I go into the overlay editor, bring up variable manager, all variables. No matter what I try for a variable name, hitting save highlights the variable name field in red. So obviously its not happy. But NOTHING seems to make it happy. So I am pretty sure my issue is I cannot add the variables from the above file because I can't get them in past the variable manager editor. And like the others in this thread currently the values are displayed as ??? on the image. |
Beta Was this translation helpful? Give feedback.
-
Hello Alex, I now have a weather station from Thinkerforge. https://www.tinkerforge.com/de/shop/outdoor-weather-station-ws-6147.html.This works very well with a Raspberry and the Allsky software. If you are interested in writing a module for it, I can send you my existing script files. Greetings Michael |
Beta Was this translation helpful? Give feedback.
-
Was this issue ever solved? I see some people were not properly saving the Variable table and others moved to Legacy module. But Is there a fix or an explanation of how to solve the problem? Me and a friend are trying to make this work but keep stumping with the same problem. The variable appears in All Variables, we add the variable to Allsky Variables, populating the type, description and format, we save evertyhing, the variable appears with the current value in the editor, but in live view it only shows ???. The allsky.log says the same as described in the OP, ERROR: ${CPUTEMP} has no variable type; check 'userfields.json. When we check user field.json it is empty. We are temped to manually edit userfield.json. Thanks in advance, Jose |
Beta Was this translation helpful? Give feedback.
-
@jsanchez73, please also run:
|
Beta Was this translation helpful? Give feedback.
-
Hey!
I am using module (Reads Pi status) for Pi CPU temperature and I have dht22 sensor that writes data to txt file. They both show values in Overlay editor but I only get ??? on the actual picture. I did set-up variable type to number, even tried text. I have set up overlay method to module in settings. In logs it says "ERROR: ${CPUTEMP} has no variable type; check 'userfields.json'. Using '???' instead." But I did set-up variable type and format so I am completely lost now what else can I try. There were also some previous comments about setting Overlay to debug mode. In module manager and Module options I do have debug enabled.
Beta Was this translation helpful? Give feedback.
All reactions