![]() ![]() ![]() The new is script has the following commands. I have attached an upgraded switch.py-file in this step. The number of possible commands can be extended with some if-else-statements in the python code. Replace “/home/pi/py_switch” to the path where you have stored the python script. The final python scipt is attached.Īuto-start the python script on startup. Put the uinput-API and the button script together. Make sure you install uinput with the version you are using. Therefore the buttons will emulate those two keyboards commands.įirst, create a python script to make the push buttons work: ĭownload and install python-uinput, a python API to create virtual keyboards: Raspbian comes with both Python 2 and Python 3. By default this is done by pressing “p” and “n” at a keyboard. The Push Buttons is used to browse forward and backwards in the calendar month view. Change "localhost" to adress where your canvas-webpage are stored. Type this in the Linux terminal: cd /home/pi//.config/autostart Now, lets make Iceweasel to autostart and open your webpage at login. Open the “Stylish” extension tab in Iceweasel and customize the CSS to make the google callander look better. The redesign can’t be done at the webpage, because the CSS are embedded from another server (the google-server). The local CSS is used to change the appearances of the google calendar. But I have only find one that can handle these three requirements 1) can handle the modern version of google calendar, 2) has a full screen mode, 3) can run a local CSS. Now save your modifed index.html to /var//var/www/html/index.html Install a webserver by following this guide. If you already have a webhost continue to the next step. Instead, use the embeed code generated by google.Įither put the index.html file on your own webhost, or turn your Raspberry Pi into a webserver and host it local. For privacy, I have replace some of the code with “*_REPLACED_*”. I have created a JavaScript that ensure that focus is correct.Īn example file of html code is attached (change name from to index.html). This will only work when the is in focus. Press N and the next month will appear, press P and the previously month is shown. Google Calendar have built in keyboard shortcuts. This youtube shows how to get it to work: The embeed code is generate by googles own aplication. I will show you how i to embed a google callender. The canvas can be filled with any information. The webpage is the canvas the Raspberry Pi will display. Finaly, connect the HDMI cable between Raspberry and controller board, and connect the screen to the controller board. (You will find it by trying to connect ground to each pin, suddenly the LCD will light up). Find out the pin for On/Off button for the controller board, and connect it with the fourth Push Button. Connect three of the Push Buttons to GPIO-pins 19/20/21 and to ground. Use a large drill, and drill carefully by hand. Cut with a “snap-off blade knife” and glue with “glue spray”. Cut out foamcore with equal thickness as the screen.I used the orginal mounting frame from the laptop. Carve out and make room for the electronics on the back. The width and height depends on the size of your laptop screen, have a margin for an extra 10 mm on all sides. Height should be more than 30mm, so the electronics can fit inside. Search for LCD Controller Driver Board and the serial number of your laptop screen. Powersuply for controller board and Raspberry Pi.The width and height depends on the size of your laptop screen. Webserver running a custom made homepage. ![]() Controller card for the laptop screen (search Ebay for LCD Controller Driver Board and the serial number of your laptop screen).LCD laptop screen (take one from a broken laptop.Live information about the public transport.Upcoming events in the surrounding area.This modern version of the wall mounted calendar includes the same basic functions:īeyond those basic functions this gadget will also handle: Before the “digital age” many families used wall calendars to show a monthly view of upcoming events.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |