Author Topic: FOSHKplugin - brief introduction  (Read 10741 times)

0 Members and 1 Guest are viewing this topic.

Offline KC5JIM

  • Senior Contributor
  • ****
  • Posts: 162
    • KC5JIM Weather
Re: FOSHKplugin - brief introduction
« Reply #150 on: October 31, 2021, 01:11:27 PM »
APRS/CWOP is working perfectly for me. Thank you!
Ecowitt GW1002 | FOSHKplugin on Pi 4


Offline Gyvate

  • Forecaster
  • *****
  • Posts: 1149
Re: FOSHKplugin - brief introduction
« Reply #151 on: November 01, 2021, 05:49:11 AM »
...

  • new, improved sun hours calculation sunhours (according to https://github.com/Jterrettaz/sunduration) with dynamic, location-dependent threshold value (thank you Werner!), requires Coordinates\LAT and Coordinates\LON
....
Thanks.

Oliver
looks like this formula is much better than what's commonly used in stations, and it somehow (result-wise) seems to match with the findings and resulting table from an Austrian weather enthusiast: http://www.pete.at/wetter/Sonnenstunden_2021.htm (German only).

If the precision of this formula also used by Mteo France has really +/- 1% deviation only from a pyranometer, it's definitely much  better than the common general 120 or 200 W/m2 threshold values.

However, nothing beats the measurements of direct sun radiation with a pyranometer or e.g. the Blake-Larsen SunRecorder which I personally use and which seems to have a similar formula inbuilt regarding longitude, latitude and time and day dependent azimuth to translate the electrical current from the photo cell in A into sunshine seconds. Its measurements over 1 1/2 years now match nicely with corresponding minute based photos of the local sky.

But no doubt, Oliver's implementation of the new sun hour formula is a great step ahead for all those who can use FOSHKplugin  =D>
Froggit WH4000SE (=EW 2320E) 1.6.1/GW1100 2.0.8/Froggit DP1500 1.6.8 (+EW GW1000 (4) 1.6.8 test/backup)/HP1000SE Pro (HP2551) 1.6.1/1.7.7, WH2650 WiFi (2) 1.6.8,GW2000 2.1.0;
Ecowitt WS90-,WS80,WH40,WH65,WH31(5),WH31-EP(1),WN30/DP30 (1),WH32(1),WH32-EP(1),WH32B [T/H/P] (1), WH57 [Lightning] (1), WH41 [PM2.5] (2), WH51 [SoilMoisture] (5), WH45, WH55 (2)
Meteobridge Pro (2) [test,prod] 5.2 Nov 21 2021, 14636 - Blake-Larsen Sun Recorder - RPi4/weewx 4.5.1/CumulusMX 3160/MB RPi4 (2671)
Meteoshield Pro, MetSpec Rad02
Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553);, http://meshka.eu

Online olicat

  • Forecaster
  • *****
  • Posts: 656
  • DP1500, GW1100, HP2551C, HP3500 & FOSHKplugin
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #152 on: November 01, 2021, 06:35:43 AM »
Hi!

Quote
nothing beats the measurements of direct sun radiation with a pyranometer or e.g. the Blake-Larsen SunRecorder
I have already prepared the implementation of the Blake-Larsen SunRecorder in FOSHKplugin. However, since the Blake-Larsen SunRecorder requires a Windows computer, I put this development on hold for the time being. I don't want to run a Windows computer (or VM) 24/7 - especially for just one measured value. And I'm still hoping for an embedded solution where the value is simply output. Or a Linux solution based on software.

But you can already use the FWD_EXEC function (modify outgoing data line (exec)), to add any values to the Ecowitt stream or replace values with other sensors.

Oliver

Offline wxwol

  • Member
  • *
  • Posts: 15
Re: FOSHKplugin - brief introduction
« Reply #153 on: November 02, 2021, 03:06:14 PM »
APRS/CWOP working well here too, now running for a few days with no hiccups.

Offline danitus13

  • Member
  • *
  • Posts: 6
Re: FOSHKplugin - brief introduction
« Reply #154 on: December 18, 2021, 11:57:29 AM »
Hi, I write from Italy.
I bought a waldbeck halley 6 in 1 with an additional indoor temperature sensor (clone hp1000 from froggit)
I installed weewx and used the gw1000 IP driver.
I want the indoor sensor which should be a Wh32, as the main outdoor sensor, what to change in weewx?

Offline wxwol

  • Member
  • *
  • Posts: 15
Re: FOSHKplugin - brief introduction
« Reply #155 on: December 18, 2021, 12:04:13 PM »
I have never used weewx, however with FOSHKplugin you just add a couple of parameters to the configuration file and you are in business. I used an WH31_EP sensor outside until yesterday, which is normally seen as an indoor unit, and FOSHKplugin effortlessly reported it as an external unit.

Online olicat

  • Forecaster
  • *****
  • Posts: 656
  • DP1500, GW1100, HP2551C, HP3500 & FOSHKplugin
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #156 on: December 18, 2021, 12:59:52 PM »
Hi!

I'm not exactly sure what you're up to and what the starting position is.
If you really have a WH32, its value is taken automatically - a WH32 trumps the combination sensor.  However, if you mean the sensor included in the bundle: This is a WH32B and therefore an indoor sensor.
Perhaps you really have a WH31 additional sensor and want to use this as the outdoor sensor.
First you have to be sure of the model.

Beside that:
I don't know if there's a remap functionality in weewx.
But this thread is FOSHKplugin specific and not for discussion of configuration problems with WeeWX.

Oliver

Offline danitus13

  • Member
  • *
  • Posts: 6
Re: FOSHKplugin - brief introduction
« Reply #157 on: December 18, 2021, 01:38:20 PM »
Ho aperto un topic specifico qui, se potete aiutarmi. Grazie.

https://www.wxforum.net/index.php?topic=43157.new#new

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 1149
Froggit WH4000SE (=EW 2320E) 1.6.1/GW1100 2.0.8/Froggit DP1500 1.6.8 (+EW GW1000 (4) 1.6.8 test/backup)/HP1000SE Pro (HP2551) 1.6.1/1.7.7, WH2650 WiFi (2) 1.6.8,GW2000 2.1.0;
Ecowitt WS90-,WS80,WH40,WH65,WH31(5),WH31-EP(1),WN30/DP30 (1),WH32(1),WH32-EP(1),WH32B [T/H/P] (1), WH57 [Lightning] (1), WH41 [PM2.5] (2), WH51 [SoilMoisture] (5), WH45, WH55 (2)
Meteobridge Pro (2) [test,prod] 5.2 Nov 21 2021, 14636 - Blake-Larsen Sun Recorder - RPi4/weewx 4.5.1/CumulusMX 3160/MB RPi4 (2671)
Meteoshield Pro, MetSpec Rad02
Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553);, http://meshka.eu

Online olicat

  • Forecaster
  • *****
  • Posts: 656
  • DP1500, GW1100, HP2551C, HP3500 & FOSHKplugin
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #159 on: December 24, 2021, 03:32:01 AM »
Hi!

The public beta test for the new version of FOSHKplugin v0.09 has started.
I think there are some really useful new things in there.
Highlights:
  • FWD_REMAP - output keys can now be defined with values of all known internal keys
  • APRS/CWOP support
  • new forward type EWUDP to convert incoming weather station data to UDP for Personal Weather Tablet/UDP broadcast listener
  • improved sunhours calculation
Have a look to the complete Version History.

Users who do not urgently need the new functions can stay with the stable version v0.08 for the time being.
The public beta test is intended to find out any errors in use cases that are difficult to recreate by me and the internal test team.
This version has been running stable for a handful of people for a few weeks, so I don't expect any major problems.

To upgrade:
Change via ssh to the directory in which FOSHKplugin is running - according to my recommendations, it could be /opt/FOSHKplugin/.
If you run FOSHKplugin as root, you can do the following commands without "sudo -u username" - if you run FOSHKplugin in a certain user context, the specification of that user would be important so that the permissions are correct:

Code: [Select]
sudo -u username ./generic-FOSHKplugin-install.sh -upgrade generic-FOSHKplugin-0.0.9Beta.zip

Let me know if there're any problems or you need some explanations of the new functions. Most things should already be described on the website.

For first time (or parallel) installation just use this link.
LoxBerry users should download and install this version the usual LoxBerry-installation-way instead.

Have fun and Merry Christmas!

Regards, Oliver


Offline KC5JIM

  • Senior Contributor
  • ****
  • Posts: 162
    • KC5JIM Weather
Resolved Re: FOSHKplugin - brief introduction
« Reply #160 on: December 24, 2021, 02:29:06 PM »
My Pi was weird so I just did a clean install and everything is working great!
« Last Edit: December 24, 2021, 07:43:42 PM by KC5JIM »
Ecowitt GW1002 | FOSHKplugin on Pi 4


Online olicat

  • Forecaster
  • *****
  • Posts: 656
  • DP1500, GW1100, HP2551C, HP3500 & FOSHKplugin
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #161 on: December 24, 2021, 03:46:56 PM »
Hi Jim,

I have currently no clue what there's going on.
But first you could try a repair:
Code: [Select]
sudo ./generic-FOSHKplugin-install.sh -repairIf this still does not help, please send me the output of
Code: [Select]
ls -lah from the FOSHKplugin install dir via PM.

Oliver

Offline zoomx

  • Contributor
  • ***
  • Posts: 132
Re: FOSHKplugin - brief introduction
« Reply #162 on: December 31, 2021, 12:18:01 PM »
Can I ask if it is possible to add the upload to InfluxDB 2.0? The protocol seems different. I added the 1.0 compatibility but it seems that it doesn't work.
Happy New Year!

Online olicat

  • Forecaster
  • *****
  • Posts: 656
  • DP1500, GW1100, HP2551C, HP3500 & FOSHKplugin
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #163 on: January 01, 2022, 03:27:26 AM »
Hi!

InfluxDB 2 should be backwards compatible with 1.x.  So it should work by now.
However, I am currently missing a corresponding test option.  Perhaps there is a hint on the internet as to what InfluxDB v2 needs to be adjusted in order for it to work.
I will try to test it with InfluxDB 2 and adapt FOSHKplugin if necessary. With InfluxDB 1.8, FOSHKplugin runs here in a productive environment.

Do you get any error message while uploading to InfluxDB v2?

Happy new year!

Oliver
« Last Edit: January 01, 2022, 03:37:43 AM by olicat »

Offline zoomx

  • Contributor
  • ***
  • Posts: 132
Re: FOSHKplugin - brief introduction
« Reply #164 on: January 03, 2022, 03:39:49 AM »
I checked and there is no error message on FOSHKplugin (or i was unable to find it).

But in Influxdb 2.0 they changed the interface. Now it has the web UI again (in 1.8 there is no web UI you should use Chronograph but previous versions had it) but  you can't do all thing in it, for example you cannot create new user or simply manage them. I didn't find a place where I can see wich database can be accessed by an user.
So, I believe, there is simply a permission issue.

I switched from 1.8 on a RaspberryPi to a 2.0 on Windows because a SD crash on the raspy.


Offline davidefa

  • Senior Contributor
  • ****
  • Posts: 205
Re: FOSHKplugin - brief introduction
« Reply #165 on: January 03, 2022, 05:07:19 AM »
If you switched from FOSHKplugin + db on same 'board' to FOSHKplugin an a 'board' and db to a different 'board' it may be a firewall problem

Online olicat

  • Forecaster
  • *****
  • Posts: 656
  • DP1500, GW1100, HP2551C, HP3500 & FOSHKplugin
    • FOSHKplugin
Re: FOSHKplugin - brief introduction
« Reply #166 on: January 03, 2022, 05:09:03 AM »
Hi!

Quote
I checked and there is no error message on FOSHKplugin (or i was unable to find it).
You should have a look to the snd-foshkplugin.log log file and search for a message (for this specific forward FWD-xx) like:
Code: [Select]
03.01.2022 10:11:23.877 <ERROR> FWD-53: InfluxDB sending of 324 values to TestData@192.168.15.252:8086: 401: {"code":"unauthorized","message":"Unauthorized"} (3 tries)
In my example this is indeed a permission issue.
I just have installed the InfluxDB v2.1.1 on Windows but don't find the compatibility settings to configure nor the credentials for the database.
Have to investigate further ...

Quote
I switched from 1.8 on a RaspberryPi to a 2.0 on Windows because a SD crash on the raspy.
And there's no v1.8 for Windows available anymore?

Oliver

Offline zoomx

  • Contributor
  • ***
  • Posts: 132
Re: FOSHKplugin - brief introduction
« Reply #167 on: January 03, 2022, 06:52:36 AM »
If you switched from FOSHKplugin + db on same 'board' to FOSHKplugin an a 'board' and db to a different 'board' it may be a firewall problem

Yes, I checked this too because the web UI was not reachable from another PC but I have an ESP8266 thet upload data without problems using the influxdb official library. Now I reach the web UI but it refuses to log me in. I have to search.
Also Grafana, in the same PC, cannot access to InfluxDB. I have to study more!


Hi!

And there's no v1.8 for Windows available anymore?

I wish to test the new 2.0 avoiding future switching but I believe that will install it also.