Canadian Daily Weather Data #775
Replies: 7 comments 3 replies
-
|
Great work! Since we now have two fronts of communication open, to not duplicate everything. I will talk more about the code here. This is great example that I will use as a case on which I can improve things. Like the selection function I mentioned (instead of display), maybe add string interpolation " ... {someval} .... {otherval} ...", etc. This is my, slightly tuned version of your code: One thing that won't work with Rye currently on github yet is this line format function was already there, but it could only accept single value, not it also accepts a block of values. |
Beta Was this translation helpful? Give feedback.
-
|
I've gone through this in detail and find lots of useful changes. Especially getting data out of a 'TableRow'! And how did I miss The spinner is something I was interested in trying, so I'm very happy that you included an example in my code.
Thanks for the encouragement and for taking the time to critique my code and offer suggestions. |
Beta Was this translation helpful? Give feedback.
-
|
I mentioned you flutter console experiment ... one idea is to first make just regular text console in flutter, but then make functions like you used for selection and display use flutter UI elements to achieve that ... we will see how it comes together. It would not be a classic UI, but more conversational, like your terminal based app is. But that could work even better on mobile I think. |
Beta Was this translation helpful? Give feedback.
-
|
Flutter is still a pretty long way off for me. Even if the tooling has improved since it was introduced, going to mobile means offering much more than mere data downloads. I've done a fair bit of spreadsheet work on mobile and it's not pleasant. That means a mobile app would have to include a range of useful analyses and/or some way to offer simple analytical tools. I will get there, I'm sure, but a better understanding of rye and at least a foundational understanding of go and your code comes first. Given my other hobbies, I expect flutter to be a year or so in my future. |
Beta Was this translation helpful? Give feedback.
-
|
The idea is that the same code you have now will also run with a flutter frontend and be GUIfied :) ... that's the idea. I'm not 100% certain how well it will come out, but I long think there is something there. |
Beta Was this translation helpful? Give feedback.
-
|
I have completed an almost complete rewrite. It turned out that There are some possibly questionable things I've done, like using files to help with my processing, but it works and there is less potential for errors. Unless I find something major, I'll now move on to data analysis. |
Beta Was this translation helpful? Give feedback.
-
|
I've created a new repository for this project at https://github.com/jaderoca/HeatCost. I haven't made any changes to the code yet, but I realized that I shouldn't have repositories per language but per project. It was fine while I was just exploring Rye to see if I liked it, but it's not really sustainable given my long-term plans. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I made a small program for retrieving historical daily data for any one of the over 8000 weather stations in the Environment Canada database. Environment Canada supplies this data one year at a time, so I pull each year in tutn and append it all to a single CSV file for further analysis.
I'm sure that there are better ways to do what I've done, but I've tried my best to write the code the way I imagine idiomatic Rye would be written.
I'm proudest of my
get-csvfunction, because I have one function that uses parameters to deal with source data, destination file, the differences between file structures supplied by Environment Canada, and whether or not data retrieved should create or replace the destination file or append to an existing file.I think the biggest hack is getting data from a
TableRow. I didn't see any way to get it directly and nothing I tried worked. I found that aTableRowcan be converted to a string, so I did that and then used some simple string processing to get the data I needed.Next up is sorting out git so that I get things properly named and organized!
https://github.com/jaderoca/Rye
Beta Was this translation helpful? Give feedback.
All reactions