Author Topic: Adding Weathercloud  (Read 1179 times)

0 Members and 1 Guest are viewing this topic.

Offline TinkerTown

  • Senior Member
  • **
  • Posts: 68
Adding Weathercloud
« on: February 08, 2021, 08:40:30 AM »
I was trying to load weathercloud into my Weewx installation. But I am getting errors when I run the install script. Any ideas?

/tmp:w-pi@ss:0:$sudo /home/weewx/bin/wee_extension --install /tmp/weewx-wcloud.zip
Traceback (most recent call last):
  File "/home/weewx/bin/wee_extension", line 88, in <module>
    main()
  File "/home/weewx/bin/wee_extension", line 67, in main
    config_path, config_dict = weecfg.read_config(options.config, _args)
  File "/home/weewx/bin/weecfg/__init__.py", line 176, in read_config
    config_dict = configobj.ConfigObj(config_path,
  File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load
    raise error
configobj.DuplicateError: Duplicate section name at line 94. File /home/weewx/weewx.conf

I checked, there is nothing on line 94. It is where the section that has [StdRESTful]
« Last Edit: February 08, 2021, 09:03:51 AM by TinkerTown »
Ecowitt GW1000 | WS-2902C |Weewx on Raspberry Pi
WU: KNMLOVIN14  |  PWSweather: PWSLOVNM1
CWOP: FW9112; https://lovingtonweather.com

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3298
Re: Adding Weathercloud
« Reply #1 on: February 08, 2021, 10:27:33 AM »
Did you check inside the [StdRESTful] stanza if there are duplicate entries on the next lower level stanzas: [[.....]], [[ ....]] ?
Would be good to see your whole weewx.conf in order to get some more ideas. (can attach it as .txt or .zip file)

And what exactly do you mean by
"I was trying to load weathercloud into my Weewx installation."
You want to install functionality to upload data to WeatherCloud ?
The language used sounds (to me) like the opposite.
« Last Edit: February 08, 2021, 10:34:08 AM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline TinkerTown

  • Senior Member
  • **
  • Posts: 68
Re: Adding Weathercloud
« Reply #2 on: February 08, 2021, 07:26:42 PM »
Did you check inside the [StdRESTful] stanza if there are duplicate entries on the next lower level stanzas: [[.....]], [[ ....]] ?
Would be good to see your whole weewx.conf in order to get some more ideas. (can attach it as .txt or .zip file)

And what exactly do you mean by
"I was trying to load weathercloud into my Weewx installation."
You want to install functionality to upload data to WeatherCloud ?
The language used sounds (to me) like the opposite.

There were no entries for Weathercloud before I tried running the installer. I was trying to install Weathercloud, per the statement in the instructions.

/tmp:w-pi@ss:0:$sudo /home/weewx/bin/wee_extension --install /tmp/weewx-wcloud.zip

Config is attached minus logins. Weathercloud didn't have an entry before.


Ecowitt GW1000 | WS-2902C |Weewx on Raspberry Pi
WU: KNMLOVIN14  |  PWSweather: PWSLOVNM1
CWOP: FW9112; https://lovingtonweather.com

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3298
Re: Adding Weathercloud
« Reply #3 on: February 09, 2021, 03:13:00 AM »
apart from finding a fix here - I see that you use a GW1000 - you could have the GW1000 post directly to WeatherCloud using the Weather Networks in the WSView app - that works in any case.  8-) - why make a detour via weewx ? (of course there can be reasons ...)

in your weewx.conf unfortunately lines are cut
(when you make a copy with copy/paste you have to make sure that your debian (Raspbian) editor window (usually nano) has been widened to accommodate the whole line, otherwise lines get cut in the copy/paste process - best is just to make physical copy of the file and rename it (and then edit it for credentials etc.))
# -----start of weewx.conf excerpt ----------------------
[[Services]]
        prep_services = weewx.engine.StdTimeSynch
        data_services = ,
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWX>
        xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, weewx>
        archive_services = weewx.engine.StdArchive
        restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.>
# -----end of weewx.conf excerpt ----------------------
can you verify if there is an entry "user.wcloud.WeatherCloud" ?
the whole line should be:
       restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, user.wcloud.WeatherCloud
« Last Edit: February 09, 2021, 04:01:43 AM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3298
Re: Adding Weathercloud
« Reply #4 on: February 09, 2021, 04:08:51 AM »
maybe you used the wrong file
try the attached one
assuming you copy it into /home/pi/Downloads , run the installer with
sudo wee_extension --install /home/pi/Downloads/weewx-wcloud-master.zip
and see what happens ....

I tried it on my test machine and it ran through without complaints:

pi@raspberrypi:~ $ sudo wee_extension --install /home/pi/Downloads/weewx-wcloud-master.zip
Request to install '/home/pi/Downloads/weewx-wcloud-master.zip'
Extracting from zip archive /home/pi/Downloads/weewx-wcloud-master.zip
Saving installer file to /usr/share/weewx/user/installer/wcloud
Saved configuration dictionary. Backup copy at /etc/weewx/weewx.conf.20210209094617
Finished installing extension '/home/pi/Downloads/weewx-wcloud-master.zip'
« Last Edit: February 09, 2021, 04:11:19 AM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline TinkerTown

  • Senior Member
  • **
  • Posts: 68
Re: Adding Weathercloud
« Reply #5 on: February 09, 2021, 06:20:48 AM »
apart from finding a fix here - I see that you use a GW1000 - you could have the GW1000 post directly to WeatherCloud using the Weather Networks in the WSView app - that works in any case.  8-) - why make a detour via weewx ? (of course there can be reasons ...)

in your weewx.conf unfortunately lines are cut
(when you make a copy with copy/paste you have to make sure that your debian (Raspbian) editor window (usually nano) has been widened to accommodate the whole line, otherwise lines get cut in the copy/paste process - best is just to make physical copy of the file and rename it (and then edit it for credentials etc.))
# -----start of weewx.conf excerpt ----------------------
[[Services]]
        prep_services = weewx.engine.StdTimeSynch
        data_services = ,
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWX>
        xtype_services = weewx.wxxtypes.StdWXXTypes, weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, weewx>
        archive_services = weewx.engine.StdArchive
        restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.>
# -----end of weewx.conf excerpt ----------------------
can you verify if there is an entry "user.wcloud.WeatherCloud" ?
the whole line should be:
       restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, user.wcloud.WeatherCloud

I modified the line to add the weathercloud statement, it didn't have it. I will download your zip, though it looks the same as the one I downloaded the other day, let me try it again and see if it goes through.
Ecowitt GW1000 | WS-2902C |Weewx on Raspberry Pi
WU: KNMLOVIN14  |  PWSweather: PWSLOVNM1
CWOP: FW9112; https://lovingtonweather.com

Offline TinkerTown

  • Senior Member
  • **
  • Posts: 68
Re: Adding Weathercloud
« Reply #6 on: February 09, 2021, 06:32:21 AM »
Well, your zip installed just fine. So maybe there was an issue with the zip I got from https://github.com/matthewwall/weewx-wcloud? Anyway, it is working now. I appreciate the help!
Ecowitt GW1000 | WS-2902C |Weewx on Raspberry Pi
WU: KNMLOVIN14  |  PWSweather: PWSLOVNM1
CWOP: FW9112; https://lovingtonweather.com

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3298
Re: Adding Weathercloud
« Reply #7 on: February 09, 2021, 06:33:59 AM »
I modified the line to add the weathercloud statement, it didn't have it. I will download your zip, though it looks the same as the one I downloaded the other day, let me try it again and see if it goes through.
from the error messages it looks as if the installer didn't go that far to make that entry in weewx.conf - that's why it wasn't there yet, but without a properly working wcloud.py file installed, the entries in weewx.conf won't have an effect. It's the combination.
Regarding the file, I was wondering why it had a different name from mine. I just downloaded mine directly from GitHUB (not with wget, maybe there was an old link pointing to an older version, not adapted to weewx 4 or phthon3).
you could still think of using the GW1000 for the upload if there's nothing else speaking against it.  ;) 8-)
« Last Edit: February 09, 2021, 06:36:17 AM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline TinkerTown

  • Senior Member
  • **
  • Posts: 68
Re: Adding Weathercloud
« Reply #8 on: February 09, 2021, 06:39:48 AM »
I modified the line to add the weathercloud statement, it didn't have it. I will download your zip, though it looks the same as the one I downloaded the other day, let me try it again and see if it goes through.
from the error messages it looks as if the installer didn't go that far to make that entry in weewx.conf - that's why it wasn't there yet, but without a properly working wcloud.py file installed, the entries in weewx.conf won't have an effect. It's the combination.
Regarding the file, I was wondering why it had a different name from mine. I just downloaded mine directly from GitHUB (not with wget, maybe there was an old link pointing to an older version, not adapted to weewx 4 or phthon3).
you could still think of using the GW1000 for the upload if there's nothing else speaking against it.  ;) 8-)

I was looking in the WS View app, but I don't see any "Weather Networks" section. I see New Device, Device List, WU Dashboard, Manage Wunderground, Unit settings and Manage Ecowitt.

Does that come from a different WS View app? I am running it on my Android.
Ecowitt GW1000 | WS-2902C |Weewx on Raspberry Pi
WU: KNMLOVIN14  |  PWSweather: PWSLOVNM1
CWOP: FW9112; https://lovingtonweather.com

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 6822
Re: Adding Weathercloud
« Reply #9 on: February 09, 2021, 06:49:40 AM »
In WS View you have to go to Device List, then select your GW1000, then go to select menu More / Weather Services. Then Next until you see WeatherCloud.
« Last Edit: February 09, 2021, 08:22:10 AM by galfert »
Ecowitt GW1000 | Meteobridge on Raspberry Pi
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline TinkerTown

  • Senior Member
  • **
  • Posts: 68
Re: Adding Weathercloud
« Reply #10 on: February 09, 2021, 07:43:43 AM »
Ah ok, didn't even see that.

Ah, I finally got it working!
« Last Edit: February 09, 2021, 08:46:09 AM by TinkerTown »
Ecowitt GW1000 | WS-2902C |Weewx on Raspberry Pi
WU: KNMLOVIN14  |  PWSweather: PWSLOVNM1
CWOP: FW9112; https://lovingtonweather.com

 

anything