Author Topic: Weewx Awekas API  (Read 942 times)

0 Members and 1 Guest are viewing this topic.

Offline SebQB49

  • Member
  • *
  • Posts: 4
Weewx Awekas API
« on: September 13, 2022, 03:16:08 PM »
Good evening,
I use the weather station from Bresser 7 in 1 Clearview and send the data to Awekas. Now I would like to download the data to Weewx via API. Is there a possibility? Many Thanks

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 2333
Re: Weewx Awekas API
« Reply #1 on: September 14, 2022, 04:33:26 PM »
two options which I can see:
1. via the AWEKAS API - the respective reply has been sent to your question in the weewx user group - you'd have to change some coding
2. use a SDR (software defined radio) device and the weewx SDR extension (provided the hardware/sensors of this Bresser station are known in the SDR database)
WS2350 1.6.5, GW1000(3) 1.7.6, WH2650 WiFi (2) 1.7.6 (test/backup), GW1100 2.2.3, GW2000(3) 2.2.3, HP2551 1.6.5/1.9.0, WN910 1.2.2;
Ecowitt WS90(2), WS80, WH40, WH65, WH31(5), WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5] (2), WH51 (4), WH45, WH55
MeteobridgePro(2)[test,prod] 5.5 Oct 27 2022, 14855 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/CumulusMX 3231/Meteobridge RPi4B-2GB(2886)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553), http://meshka.eu

Offline SebQB49

  • Member
  • *
  • Posts: 4
Re: Weewx Awekas API
« Reply #2 on: September 15, 2022, 05:34:11 AM »

Thank you, I was able to connect to WU via API, data is also being fetched. Unfortunately, the data is still displayed incorrectly. I have Station_type = Simulator in the weewx.conf, is that correct?

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 2333
Re: Weewx Awekas API
« Reply #3 on: September 15, 2022, 08:14:52 AM »
From what I know WU data which the station sends to WU can be fetched via the weewx interceptor driver. The simulator does what its name says - it simulates  ;)
I suggest you check the interceptor driver and its description at
https://github.com/matthewwall/weewx-interceptor/
entries in weewx.conf:
station_type=Interceptor in [Station]
device_type = wu-client in [Interceptor]  (after installation  8-))
WS2350 1.6.5, GW1000(3) 1.7.6, WH2650 WiFi (2) 1.7.6 (test/backup), GW1100 2.2.3, GW2000(3) 2.2.3, HP2551 1.6.5/1.9.0, WN910 1.2.2;
Ecowitt WS90(2), WS80, WH40, WH65, WH31(5), WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5] (2), WH51 (4), WH45, WH55
MeteobridgePro(2)[test,prod] 5.5 Oct 27 2022, 14855 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/CumulusMX 3231/Meteobridge RPi4B-2GB(2886)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553), http://meshka.eu

Offline SebQB49

  • Member
  • *
  • Posts: 4
Re: Weewx Awekas API
« Reply #4 on: September 15, 2022, 03:11:25 PM »
Hi, thanks for your help. I am now using the Inceptor driver. Data is also retrieved from WU. Under Current Conditions it says Outside Temp: 0.1 C
Inside Temp 17.2 C. Outside 12.9 and Inside 24.1 would be correct.


Offline Gyvate

  • Forecaster
  • *****
  • Posts: 2333
Re: Weewx Awekas API
« Reply #5 on: September 15, 2022, 05:14:50 PM »
you may want to check what your station is posting before weewx is doing any processing.
For this run the driver only - as described with the interceptor driver documentation
e.g.
PYTHONPATH=bin python bin/user/interceptor.py --device=wu-client --mode=sniff --iface=eth0 --filter="src 192.168.0.4 and dst port 80"

you need to put your station's IP address - you may need to replace "python" by "python2" or "python3" and may need to adapt your path to the python directory
you may need to put a "sudo" in front of the command
if you use WLAN/WiFi with your weewx server, --iface=wlan0 needs to be put instead

the driver will send the output to the (server) console - then you can check what it receives and can figure out why your outdoor temperature shows wrong values inside weewx.
Meaning: see if it's a data issue with what station sends or is it due to some processing inside weewx
« Last Edit: September 16, 2022, 10:19:36 AM by Gyvate »
WS2350 1.6.5, GW1000(3) 1.7.6, WH2650 WiFi (2) 1.7.6 (test/backup), GW1100 2.2.3, GW2000(3) 2.2.3, HP2551 1.6.5/1.9.0, WN910 1.2.2;
Ecowitt WS90(2), WS80, WH40, WH65, WH31(5), WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5] (2), WH51 (4), WH45, WH55
MeteobridgePro(2)[test,prod] 5.5 Oct 27 2022, 14855 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/CumulusMX 3231/Meteobridge RPi4B-2GB(2886)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553), http://meshka.eu

Offline SebQB49

  • Member
  • *
  • Posts: 4
Re: Weewx Awekas API
« Reply #6 on: September 16, 2022, 09:00:32 AM »
Another thing that struck me was Hardware Simulator under "about this station". Even though I installed the interceptor driver. Sorry for the questions

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 2333
Re: Weewx Awekas API
« Reply #7 on: September 16, 2022, 10:17:04 AM »
if you want to have something else written there, open the file /etc/weewx/skins/Seansons/about.inc
and change the respective line into:

....
<table>
    <tr>
      <td class="label">Hardware</td>
      <td class="data">xxxxxxxxxxxxxxxxx</td>
    </tr>
....
where xxxxxxxxxxxxx is what you want to have

I guess the entry comes from the original choice of station during setup.
WS2350 1.6.5, GW1000(3) 1.7.6, WH2650 WiFi (2) 1.7.6 (test/backup), GW1100 2.2.3, GW2000(3) 2.2.3, HP2551 1.6.5/1.9.0, WN910 1.2.2;
Ecowitt WS90(2), WS80, WH40, WH65, WH31(5), WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5] (2), WH51 (4), WH45, WH55
MeteobridgePro(2)[test,prod] 5.5 Oct 27 2022, 14855 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/CumulusMX 3231/Meteobridge RPi4B-2GB(2886)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE), ISAARB22(HP2553), http://meshka.eu