WeeWx to Web

242 views
Skip to first unread message

Sideshow Raheem

unread,
Jul 27, 2023, 3:31:34 PM7/27/23
to weewx-user
Hello all,

I've been enjoying tinkering with my new weather station lately. I've got it setup perfectly on my raspberry pi at home and it displays exactly how I'd like using WeeWx and the Belchertown skin.

Now I want to securely get it accessible via the web. At first I thought that the directions here would work well for me - https://www.cougar.eu.com/useful-guides/weewx-guides/publish-weewx-to-s3/index.html and it seemed like it was. But using CloudFront and this setup I'm just getting a static site that doesnt update, and all of the pictures are broke as well.

Now I'm wondering if I either A) setup something incorrectly, or B) am taking the wrong approach.

Would I be better off hosting the WeeWx server itself in AWS instead of my Raspberry Pi? And then just harden the ec2 instance in AWS? I liked the appeal of the s3 hosted site but just cant seem to get it to load correctly.

Thanks,

michael.k...@gmx.at

unread,
Jul 27, 2023, 3:39:49 PM7/27/23
to weewx-user
Hi,

why isn't FTP'ing from the Pi to any simple webspace an option? For MQTT features you'll probably get along with flespi.io

Or did I miss something?

Sideshow Raheem

unread,
Jul 27, 2023, 3:56:19 PM7/27/23
to weewx-user
You know how when youre a hammer everything looks like a nail?

I use AWS at work, though not CloudFront as I'm not a web guy, and just jumped in head first that way for some reason. I think youre right though, MQTT is probably a better way to go.

vince

unread,
Jul 27, 2023, 4:32:19 PM7/27/23
to weewx-user
AWS Lightsail is $3.50 per month so just spin up a 'minimal' nginx only site, stick it behind LetsEncrypt or CloudFlare, and go wild.   Use the weewx rsync uploader and you're done.  All you'd need to do for maintenance is periodically ssh in from home and apply updates and reboot once in a while.

William Reading

unread,
Jul 27, 2023, 4:34:44 PM7/27/23
to weewx...@googlegroups.com
You can also always set up cloudfront to hit the Pi running a webserver as the origin. Personally, I just run nginx as a reverse proxy to the pi (and skip paying for CF), which I think is generally good enough as long as you're comfortable setting up something like let's encrypt and dns pointed at it.

S3 static sites are nice in that you don't have to run an EC2 instance or configure that, but I've found that they have a bit of a learning curve because you need to make sure that stuff is shared publicly in the bucket and working there before you can point cloudfront at it. I think cloudfront also does have a mode where you skip the S3 static site altogether and just serve files out of S3, but I haven't tried that approach before.

--Bill

-- 
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2d0b4220-194f-4455-bab5-06fb1cc6e455n%40googlegroups.com.

Sideshow Raheem

unread,
Aug 1, 2023, 11:07:00 AM8/1/23
to weewx-user
Just an update for the group. I got everything running fine using rsync, mqtt, the belchertown skin and a lightsail VPS through AWS. It was a fun little project! I never used Lightsail before so it was cool to see that service for a bit.

If I had to do it again I think I'd just opt for a straight ec2 instance, but in the end I'm happy with the results.
Reply all
Reply to author
Forward
0 new messages