Thank you. I'm close but need a bit of help. I set up Cloudfront to serve HTTPS requests for S3 bucket.
S3 endpoint working fine: http://sprweather.com.s3-website.us-east-2.amazonaws.com Cloudfront distribution domain name looks good but is static: https://dwc3ltsta68nt.cloudfront.net Website is static too: https://sprweather.com/ What did I do wrong? Thanks. On Friday, October 15, 2021 at 4:11:08 AM UTC-6 [email protected] wrote: > 1. If I want to enable https, do I need to use CloudFront? Any tips > appreciated. > > > > I had to, don’t know if you still do, but it costs less than $0.01 per > month and gives you useful info on access patterns > > > > > > *Mike Revitt* > > *Database Migration Specialist* – *Database Migration Accelerator* > > *A*mazon *W*eb *S*ervices > > *e*: [email protected] | *p*: +44.7825.063.466 <+44%207825%20063466>| *w*: > aws.amazon.com > <https://aws.amazon.com/solutions/databasemigrations/database-freedom/> > > Thoughts on our interaction? Provide feedback here > <https://feedback.aws.amazon.com/?ea=revittmk&fn=Mike&ln=Revitt>. > > > > > > [image: signature_1577675884] > > > > > > > > *From: *<[email protected]> on behalf of mukbar <[email protected]> > *Reply to: *"[email protected]" <[email protected]> > *Date: *Friday, 15 October 2021 at 00:43 > *To: *weewx-user <[email protected]> > *Subject: *Re: [weewx-user] Re: Weewx 4.0.0b16 finally up and running on > my new Raspberry Pi > > > > Update: website is live: http://sprweather.com/ > > > > Thank you to everyone who helped me get from zero to that site. I'm > grateful. > > > > Two questions: > > > > 1. If I want to enable https, do I need to use CloudFront? Any tips > appreciated. > > > > 2. I have the Belchertown skin installed but not set as my default. I used > Mike's guide to add a skin.conf to the new S3 directory. If I set the > Belchertown skin as my default in weewx, will weewx push that to my site > automatically? Or is it not that easy? > > > > Thank you. > > > > On Thursday, October 14, 2021 at 3:15:37 PM UTC-6 mukbar wrote: > > Hi Vince. > > > > Thanks for humoring my basic questions. I was hambugged by the vi editor. > Got it now. Website displaying Hello World. > > > The aws configure --profile command was also helpful, as outlined in this > AWS guide: > https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html > > > > Will report back when I get stuck. Stay tuned. > > > > > > > > > > > > > > > > On Thursday, October 14, 2021 at 2:07:41 PM UTC-6 vince wrote: > > 1. Try using "python3" everywhere Mike used 'python' in his writeup. > Look at "Install the Python3 libraries" in the S3 page where it mentions > that you need to use python3. > > > 2. I think you need to learn how to edit a file on a pi. It can be a > little rough for new unix/linux users. I'd suggest you look in the free > edx.org class "https://www.edx.org/course/introduction-to-linux" at the > chapter on editors which should walk you through how to do that. > > > > On Thursday, October 14, 2021 at 12:47:32 PM UTC-7 [email protected] wrote: > > Thanks, Mike. Super helpful. Got the domain registered and hosted via > Route 53. Set up buckets in S3. Set up IAM account. All good. > > > > Now stuck on "Enabling S3 Access on rPi". Two questions, both silly, I > think: > > > > 1. Python -V returns: Python 2.7.16 > > > > Do I need to upgrade? > > > > 2. vi ~/.aws/credentials [weewx] returns endless lines of ~ on the > terminal. It's not obvious how/where to enter access and secret keys. I'm > think I'm doing something really dumb. What is it? > > > > Thanks. > > Mukul > > On Thursday, October 14, 2021 at 6:56:36 AM UTC-6 [email protected] > wrote: > > Hi Mukul, > > > > Thanks for the kind words. > > > > 1. I see that the weather page on your site updates automatically > every 5 minutes. Is that 5 minutes set by the archive interval in weewx? > Could I make it update more frequently if I wanted? > > > 1. This is a setting in the HTML page ‘<meta http-equiv="refresh" > content="300" />’ is the command that does this > > > > 1. I think you've built a "lighter" custom skin, in part to keep AWS > costs down. Is that right? If I disregard costs for the time being, can I > skip creating the custom skin? Or, if II set my default skin as > Belchertown > (or any other skin), will weewx send that to the S3 bucket? > > > 1. I did this because I wanted to learn HTML coding and javascript, > although I have since trimed it to reduce AWS costs > > > > 1. I've never hosted a site on AWS. I own a domain that I would like > to use for this project. Is there a useful guide that you recommend that I > can study to understand the webhost side of all this? > > > 1. There are lots of good tutorials in AWS and a free account you can > use for training > 2. > > https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Types=*all&awsf.Free%20Tier%20Categories=*all > > > > 1. > > https://docs.aws.amazon.com/AmazonS3/latest/userguide/HostingWebsiteOnS3Setup.html > > > > 1. > > https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-custom-domain-walkthrough.html > > > > > > > > > > *Mike Revitt* > > *Database Migration Specialist* – *Database Migration Accelerator* > > *A*mazon *W*eb *S*ervices > > *e*: [email protected] | *p*: +44.7825.063.466 <+44%207825%20063466>| *w*: > aws.amazon.com > <https://aws.amazon.com/solutions/databasemigrations/database-freedom/> > > Thoughts on our interaction? Provide feedback here > <https://feedback.aws.amazon.com/?ea=revittmk&fn=Mike&ln=Revitt>. > > > > > > [image: Image removed by sender. signature_1577675884] > > > > > > > > *From: *<[email protected]> on behalf of mukbar <[email protected]> > *Reply to: *"[email protected]" <[email protected]> > *Date: *Wednesday, 13 October 2021 at 18:23 > *To: *weewx-user <[email protected]> > *Subject: *[weewx-user] Re: Weewx 4.0.0b16 finally up and running on my > new Raspberry Pi > > > > Hey Mike, > > > > First, just wanted to say thank you for your posts here and also your > website. If you have noticed any traffic from Belize recently, that's me. I > really appreciate all the time you've taken to document and share how you > built your set up. Thank you! > > > > Second, I'm in the early stages of my weewx life. The next big step is for > me to publish my weather station data via weewx to a custom domain. And I > want my equipment in Belize to do as little as possible. I would like to > learn about cloud computing and this seems like a good opportunity to start. > > > > An overview of what I've got so far: > > > > Weatherflow Tempest > > Raspberry Pi 4 > > Weewx 4.5.1 > > Belchertown skin (installed but not my default skin) > > Sending data via weewx to all the usual suspects: WU, PWSWeather, > Weathercloud, WOW, Windy, Weewx map, etc. If you look on the weewx map, my > station is the one in Belize. > > > > All working smoothly. I can access the weewx default skin and belchertown > skin on my internal network. I have a few questions for you: > > > > 1. I see that the weather page on your site updates automatically every 5 > minutes. Is that 5 minutes set by the archive interval in weewx? Could I > make it update more frequently if I wanted? > > > > 2. I think you've built a "lighter" custom skin, in part to keep AWS costs > down. Is that right? If I disregard costs for the time being, can I skip > creating the custom skin? Or, if II set my default skin as Belchertown (or > any other skin), will weewx send that to the S3 bucket? > > > > 3. I've never hosted a site on AWS. I own a domain that I would like to > use for this project. Is there a useful guide that you recommend that I can > study to understand the webhost side of all this? > > > > Thanks! > > Mukul > > On Saturday, March 28, 2020 at 8:52:55 AM UTC-6 [email protected] wrote: > > For those that are interested, I have completed the port of my weewx > installation from my iMac to a new Raspberry Pi 4. > > > > I have weeks running as a service via systemctl, and I am publishing the > website up to an AWS S3 bucket every 5 minutes via BOTO3 and backing up the > database also to an S3 bucket once per day again using BOTO3. And thanks to > another post I found I am also monitoring the CPU temperature and mapping > that in the Sensor Status sub section. > > > > A huge thank you to everyone that helped me with my various issues whilst > I was doing this. > > > > The website can be viewed here https://weather.cougar.eu.com/index.html > and if anyone wants to know how I did any of this reach out and I will try > to help. > > > > Mike > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/onRG8wzFvXs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/deee7b14-6dcd-48e0-acb4-ede0577c3f2fn%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/deee7b14-6dcd-48e0-acb4-ede0577c3f2fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/onRG8wzFvXs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/31eaa581-d7b1-47fe-8d06-5627c1d6d6a9n%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/31eaa581-d7b1-47fe-8d06-5627c1d6d6a9n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e36d0cae-f097-425a-b851-14ad0135ab07n%40googlegroups.com.
