author
30CommentsJoined November 8th, 2017

Tell us about yourself!

Complete Your Profile
  • Kalmat commented on ChristineNZ's instructable XIV Nixie Clock4 months ago
    XIV Nixie Clock

    Amazing work, dude!!! And thank you so much for sharing!!! I agree: you should apply for a contest. You would have my vote!I don't know if it is too much to ask, but... how much does this cost? Where can we find the matterials? (or, at least, the most rare ones like the nixie tubes or an alternative if hard to find).Keep pushing!

    Thanks a lot for your prompt reply!!! 300 hours of work... OMG! Well, I will start as soon as possible so I can finish before my next re-encarnation!!! XDDDDAwesome project, awsome guy!

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    Hi advrider. It's hard to say from here (I mean, without taking a look to your code).I would suggest you fall back to original code (you can download it from here: https://drive.google.com/open?id=1lcZ-TdYxYw-YHhov...Then, you can try again to adapt it to your needs. Be aware you can change many things just tweaking values on settings.py! (without changing the code).Besides, x11 is not a RPi driver, but a Linux one... maybe you are trying to run the code not in the "right" way?

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    I am not sure if you received my reply on this issue... I don't find it. Excuse me if you receive twice!The program is meant to be always running, like a "real" Weather Station. Nvertheless, you can quit just pressing the "q" key on your keyboard (connect to your Pi using VNC or just plug a keyboard to your Pi).If you press 1, 2 or 3 keys, you will notice that the weather source changes to other locations, and the screen shows other values. You can modify/add/change these locations on the settings.py module.Just curious: what was wrong with the previous version? The screen resolution or other issue?

    The program is meant to be always running (like a "real" Weather Station :). Nevertheless, you can quit just pressing the "q"... Use VNC to connect to your RPi and press the key. If you press 1, 2 or 3, the Weather source will change and the display will show other locations. You can change this on settings.py, just changing/adding/removing all locations you wish.Let me ask: the problem was the resolution?

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    I use a Kuman 7" 1024x600 HDMI display, that I purchased on amazon. It's not cheap (50 bucks), but looks really nice... You only have to add a custom resolution since 1024x600 is not native on RPi. If you need to know how, do not hesitate to ask me!

    I guess you can "see" the pi desktop when plugging the screen, right? I mean, the screen works on the pi.In this case, I guess you are trying to run the code from a ssh connection, right? If so, it will not work. You need a graphic enviroment, and ssh doesn't have it.You can run the python script using VNC (or anyother remote access program of your choice), as well as directly on the RPi, jsut plugging a keyboard (and a mouse if you need it).

    Hi jberry!!not even a message is printed?!?! Pretty weird...The right option for English is "en", but this should not cause a black screen!Apart from this, please use this last version (just in case):https://drive.google.com/file/d/1lcZ-TdYxYw-YHhovNNoftn2KTnwaB0J8/view?usp=sharingI guess, and sorry for asking the obvious, your screen is working fine until you run "python wthrnews.py", right? Then it goes totally black... If so, I can only imagine that there is something wrong with the resolution the script is trying to set (check settings.py carefully). Besides that, I think my code doesn't work on GPIO TFT screens, since I couldn't test the wborelli suggestion (you can find it on this very same post, as well as in the README.txt file).

    I don't know there is something like that... You can consider two things:- Small Bluetooth Multimedia keyboard plugged to your RPi (I mean something like this: https://www.amazon.com/ANEWISH-Wireless-Keyboard-Rechargable-Multi-media/dp/B074QP5LRW/ref=sr_1_3?ie=UTF8&qid=1518377229&sr=8-3&keywords=bluetooth+multimedia+keyboard)- Install VNC on your SmartPhone. This will give you full access to your RPi, for free...

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    Hi again!please take a look to this new version. I hope you will find it interesting since I reorganised all code (and added some new features).https://drive.google.com/file/d/1Bir9m_Ms4p4mGRQJeO04Ge-BqcCa6ABW/view?usp=sharingLet me know if you find something wrong!

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    Great news! So happy to hear that...Please come back to tell us any progress you make... or any idea to improve the whole thing!

    Hi again Claudio!Do not worry, we are here to help as others help us.I see the problem. You didn't install the News API (newsapi) as indicated in INSTALL.txt. Do not worry. This new version will not require it!https://drive.google.com/file/d/1Bir9m_Ms4p4mGRQJeO04Ge-BqcCa6ABW/view?usp=sharingWith this new (and probably last) version, I have re-organised all code to make it- More understandable (I hope)- More efficient (now it takes 0.3-0.7% of total CPU when in weather only mode, and 2.2% of CPU when showing News)- More re-usable, since I have "encapsulated" most functions in order to use them in future projectsIn addition to that, I have managed to directly connect to the information sources (weather and news), so no additional APIs are required any more!You still have the sam...

    see more »

    Hi again Claudio!Do not worry, we are here to help as others help us.I see the problem. You didn't install the News API (newsapi) as indicated in INSTALL.txt. Do not worry. This new version will not require it!https://drive.google.com/file/d/1Bir9m_Ms4p4mGRQJeO04Ge-BqcCa6ABW/view?usp=sharingWith this new (and probably last) version, I have re-organised all code to make it- More understandable (I hope)- More efficient (now it takes 0.3-0.7% of total CPU when in weather only mode, and 2.2% of CPU when showing News)- More re-usable, since I have "encapsulated" most functions in order to use them in future projectsIn addition to that, I have managed to directly connect to the information sources (weather and news), so no additional APIs are required any more!You still have the same modules and variables to translate everything into italian or whatever.I couldn't test all parameters combinations yet (they are a lot) so if any one of you find anything, please warn me to fix it!PS:Regarding the direct connection to your weather station, unfortunately I am not an expert, and I can not test it since I don't have one (I would love to, but I don't by the moment). Maybe other users may help us. Take into account this is my first Python program!!!One of the users uploaded his own version based on Jim's work,. He is rbischoff1, and you can find his work here:https://github.com/rbischoff/pyweatherHe uses a weather station as well. Though I couldn't run the code since it was complaining about the database, perhaps you can take a look to his code, or asking him directly in this very same post. This way we all could learn something else too!You can also take a look to this:https://pypi.python.org/pypi/thingspeak/

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    Hi there. Sorry for the delay.Because of the error, I guess you are trying to run the python script from a ssh session, is that right? If this is the case, it will not be possiblebecause there is no graphic environment when using ssh. To run the script you need to connect using VNC (or similar)...If this is not the case, it is very weird to me. Though it should work as is, you may try other (linux) drivers:drivers = ['x11','dga','fbcon','directfb','ggi','vgl','svgalib', 'aalib']Apart from this, which is your display? are you using HDMI, GPIO,...? If using GPIO TFT display, you should try the suggestion from wborelli (I can not test it since I have no similar display).Come back to us to tell if it worked. Good luck!

    Hi there. Sorry for the delay.Because of the error, I guess you are trying to run the python script from a ssh session, is that right? If this is the case, it will not be possible because there is no graphic environment when using ssh. To run the script you need to connect using VNC (or similar)...If this is not the case, it is very weird to me. Though it should work as is, you may try other (linux) drivers:drivers = ['x11','dga','fbcon','directfb','ggi','vgl','svgalib', 'aalib']Apart from this, which is your display? are you using HDMI, GPIO,...? If using GPIO TFT display, you should try the suggestion from wborelli (I can not test it since I have no similar display).Come back to us to tell if it worked. Good luck!

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    One more thing in case a real python-expert (unfortunately I'm not... yet!) can help us.In the ScrollText() class I get an error when trying to render the News text if it is "too large". I'm not sure what is "too large" to render, which is the limit and if there could be a workaround. The only solutionI found at the moment is to reduce the text length, cutting the final 10%... but it is not very "ellegant".One alternative I was considering is to "slice" the text, recursively rendering parts of it, while maintaining the scroll of the whole thing, but I didn't get to know how to do that in a smooth way (without noticeable interruptions while scrolling the whole text, I mean).Any ideas?

    So happy to hear it has been useful to you!!! Again, any comment, doubt or suggestion is more than welcome.I strongly recommend you get a larger display... it looks really nice in my sitting room! I got a 7"... it is a little bit expensive (50 euros), but it is worth for me since it has a quite good resolution (1024x600), built-in speaker (ideal for Alexa), AC/DC adapter that you can directly plug (not with loose wires like many others intended to be connected to the car power), remote control, base and HDMI input (which is much much easier to handle than the GPIO)... Seing the results, I would like it was even larger!!!

    View Instructable »
  • Kalmat made the instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    Well, I was wondering (just for the sake of) how to include News on the screen. After trying many other options, I eventually decided to directly use APIs in my program. It's been hard to me to get it working as I wanted, but I finally got it running.I use RTVE (Spanish TV) and BBC as News sources, so you may have News in both English and Spanish. Using a different source I believe is not straight thru, since the resulting .json will be slightly different, but you can try!The News are shown every 15 minutes, for a period of 5 minutes. You can modify this to your needs.I'm affraid that small screens will not be suitable since the font will be too small. You can blacken, or dim the whole screen (dimmer class is included in the code), then printing the News font bigger,. Ask me if you ne...

    see more »

    Well, I was wondering (just for the sake of) how to include News on the screen. After trying many other options, I eventually decided to directly use APIs in my program. It's been hard to me to get it working as I wanted, but I finally got it running.I use RTVE (Spanish TV) and BBC as News sources, so you may have News in both English and Spanish. Using a different source I believe is not straight thru, since the resulting .json will be slightly different, but you can try!The News are shown every 15 minutes, for a period of 5 minutes. You can modify this to your needs.I'm affraid that small screens will not be suitable since the font will be too small. You can blacken, or dim the whole screen (dimmer class is included in the code), then printing the News font bigger,. Ask me if you need help!I also re-shaped the information on the screen to let more room to the clock. Now it is bigger, thus much more readable.I hope you like it!

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    Take a look to my design. Time is bigger. If not, I could try to explain how to make it even bigger.

    View Instructable »
  • Kalmat made the instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    So happy this was useful to you. Looks really nice!!!This is my first Python program as well!!! Perhaps you want to take the forecasts icons a little bit up on the screen. If so, you have to modify line #561 (subwindow 1)Try changing this:CURRENT LINE:self.screen.blit( icon, (xmax*wx-ix/2-xmax*0.015,ymax*(wy+gp*1.2)+yo+ymax*0.05) )CHANGE TO:self.screen.blit( icon, (xmax*wx-ix/2-xmax*0.015,ymax*(wy+gp*1.2)+yo+ymax*0.01) )Note that I changed "ymax*0.05" by "ymax*0.01". I'm just guessing... Try different values between 0.01 and 0.05, and check how it looks like on your monitor.When you have the right position for the icon, change the same line in Subwindows 2, 3 and 4 (lines #591, #621 and #651).Besides, you can also change the font for the location and last update time...

    see more »

    So happy this was useful to you. Looks really nice!!!This is my first Python program as well!!! Perhaps you want to take the forecasts icons a little bit up on the screen. If so, you have to modify line #561 (subwindow 1)Try changing this:CURRENT LINE:self.screen.blit( icon, (xmax*wx-ix/2-xmax*0.015,ymax*(wy+gp*1.2)+yo+ymax*0.05) )CHANGE TO:self.screen.blit( icon, (xmax*wx-ix/2-xmax*0.015,ymax*(wy+gp*1.2)+yo+ymax*0.01) )Note that I changed "ymax*0.05" by "ymax*0.01". I'm just guessing... Try different values between 0.01 and 0.05, and check how it looks like on your monitor.When you have the right position for the icon, change the same line in Subwindows 2, 3 and 4 (lines #591, #621 and #651).Besides, you can also change the font for the location and last update time (the text in the upper right side of the screen), if it is un-readable. Try changin this at line #265self.lSmTh = 0.01byself.lSmTh = 0.02Again, just guessing. Try different values, including 0.015.Finally, thank you for your feedback!! I will include your code in my program so it is prepared for TFT as well.Now I'm "playing" with weather and Magic Mirror... Still learning, but with some interesting results as you can see.

    View Instructable »
  • Kalmat made the instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    I couldn't stop...Last update with additional info plus fully translated to english (now is as easy as changing a variable).

    View Instructable »
  • Kalmat commented on jimk3038's instructable Raspberry Pi Internet Weather Station1 year ago
    Raspberry Pi Internet Weather Station

    After download the Weather.zip file1. Unzip downloaded Weather.zip file2. Copy unzipped "Weather" folder (not the file) to your /home/pi/ folder3. Now "cd Weather" should work on your terminal (be sure you are located at /home/pi folder when executing the command)

    View Instructable »