Experimental sunshine sensor based on solar radiation data
Moderator: Mattk
Re: Experimental sunshine sensor based on solar radiation data
When you look at the execution of the virtual sensor definition (by hoovering over the info symbol) you see, that the resulting value is invalid. That is because the final statement closing the if-then-else construct is "fi" and not "if".
I changed accordingly and now data for "data8!0num" should come in and can be used for graphing.
I changed accordingly and now data for "data8!0num" should come in and can be used for graphing.
Re: Experimental sunshine sensor based on solar radiation data
Doh! I looked at that a Million Times!



Re: Experimental sunshine sensor based on solar radiation data
Hmmm. IDK
It was there, but now it disappeared from min/max page.
It never did make any sunflags. I have a graph where I did some manual input to see what it looked like. It was over 40% quite a bit but never flagged. When I hover over the "i" symbol, it shows value "1" when intensity is over 40.
It was there, but now it disappeared from min/max page.
It never did make any sunflags. I have a graph where I did some manual input to see what it looked like. It was over 40% quite a bit but never flagged. When I hover over the "i" symbol, it shows value "1" when intensity is over 40.

Re: Experimental sunshine sensor based on solar radiation data
I still see a #if# instead a #fi# at the end of your if-then.else clause example, which will not work.
Re: Experimental sunshine sensor based on solar radiation data
For heaven's sake.
OK. I got confused but somehow for a short period of time had it correct........doh.......duh
So I see it again on the min/max page. The value shows a number now (ie 0.00) instead of "invalid"
Should it stsrt showing up on charts once sun is up tomorrow?
I don't see it on a Test chart. I did a reboot. If I manually input data it will show on a chart.
Thanks for stopping by.
D
OK. I got confused but somehow for a short period of time had it correct........doh.......duh
So I see it again on the min/max page. The value shows a number now (ie 0.00) instead of "invalid"
Should it stsrt showing up on charts once sun is up tomorrow?
I don't see it on a Test chart. I did a reboot. If I manually input data it will show on a chart.
Thanks for stopping by.
D
Re: Experimental sunshine sensor based on solar radiation data
The "data8!0num" sensor never is available to choose for sunflag on the chart define page.
The available sensors are "data10!0num" up to "data16!0num"!
I would like some help please!
Platform: Raspberry Pi 4 Model B Rev 1.1 Rev 1.1
RAM: 3895 MB total, 3734 MB free (4% used)
Storage: ATP SLC, 1.5 GB total, 724 MB free (53% used, 254.2 yrs)
SW Version: 6.2 (Aug 12 2025, build 4096), FW 1.3
The available sensors are "data10!0num" up to "data16!0num"!
I would like some help please!
Platform: Raspberry Pi 4 Model B Rev 1.1 Rev 1.1
RAM: 3895 MB total, 3734 MB free (4% used)
Storage: ATP SLC, 1.5 GB total, 724 MB free (53% used, 254.2 yrs)
SW Version: 6.2 (Aug 12 2025, build 4096), FW 1.3
Re: Experimental sunshine sensor based on solar radiation data
Likely similar issue to mine. Syntax issue with the calculation.
Here is copy and paste from my MB:
Then you should see it on Min/Max page and be available for sunflag.
When hovering you should see this:
Here is copy and paste from my MB:
Code: Select all
#if# {* [sol0!0rate-act:0] >=40 *} #then# 1 #else# 0 #fi#
When hovering you should see this:
- Attachments
-
- val+.jpg (67.65 KiB) Viewed 400 times
Re: Experimental sunshine sensor based on solar radiation data
Looking quick at the first 20 minutes or so, I expect I will lower the thresholds to more closely follow my BL Recorder. 

Re: Experimental sunshine sensor based on solar radiation data
Pfffft. Noooooow I get it.
You posted above showing me how you had fixed it when logged in to my MB.
I totally misread it, and changed it back to "if". Then scratched my head for a few days.

Thanks for taking a look again.
Re: Experimental sunshine sensor based on solar radiation data
Do you need PWD to see this chart?:
https://admin.meteobridge.com/b9d9b00fb ... D2&stop=D0
I jazzed it up with UV and bumped up the resolution.
https://admin.meteobridge.com/b9d9b00fb ... D2&stop=D0
I jazzed it up with UV and bumped up the resolution.
Re: Experimental sunshine sensor based on solar radiation data
The "data8!0num" sensor never is available to choose for sunflag on the chart define page.
The available sensors are "data10!0num" up to "data16!0num"!
I would like some help please!
Can the administrator help?
Platform: Raspberry Pi 4 Model B Rev 1.1 Rev 1.1
RAM: 3895 MB total, 3734 MB free (4% used)
Storage: ATP SLC, 1.5 GB total, 724 MB free (53% used, 254.2 yrs)
SW Version: 6.2 (Aug 12 2025, build 4096), FW 1.3
The available sensors are "data10!0num" up to "data16!0num"!
I would like some help please!
Can the administrator help?
Platform: Raspberry Pi 4 Model B Rev 1.1 Rev 1.1
RAM: 3895 MB total, 3734 MB free (4% used)
Storage: ATP SLC, 1.5 GB total, 724 MB free (53% used, 254.2 yrs)
SW Version: 6.2 (Aug 12 2025, build 4096), FW 1.3
Re: Experimental sunshine sensor based on solar radiation data
What is the code you input for calculation?
Re: Experimental sunshine sensor based on solar radiation data
The "data8!0num" sensor never is available!
Re: Experimental sunshine sensor based on solar radiation data
If you read the thread, you will see I had the same issue. It was because the syntax for the calculation on the Virtual Sensor setup page was wrong. So it never got generated.
That's why I asked you what you have typed into the text block.
I actually posted right after your first post. What do you see on you MB? What pops up when you hover mouse over the "i" symbol like in my screen shot above?
That's why I asked you what you have typed into the text block.
I actually posted right after your first post. What do you see on you MB? What pops up when you hover mouse over the "i" symbol like in my screen shot above?