ferroside.blogg.se

Internet uptime monitor raspberry
Internet uptime monitor raspberry






  1. #INTERNET UPTIME MONITOR RASPBERRY SOFTWARE#
  2. #INTERNET UPTIME MONITOR RASPBERRY CODE#

#INTERNET UPTIME MONITOR RASPBERRY SOFTWARE#

For example, I could see where the same system with a different software implementation could be used to issue the secret words to whomever's turn it is at Charades, or Taboo, or Pictionary, etc without having to bring cards along. In the same vein, this is a somewhat simple project in which isn't difficult to see how your work on "A" results in product "B" but aspects of it could be pieced together with other ideas you may have to create something not so entirely different but not necessarily the same. In terms of learning to program, this could be a website which you pick apart the HTML, CSS, & Javascript to construct it but then use pieces of this with pieces of that to make something new which is more your own. You buy them because of what they are but you then create whole new things with it especially if you happen to own maybe a couple other sets to include. Raspberry Pi projects can be seen much like Lego sets. If you added an API call in status.py, then you will need to add a corresponding button, api call, and function in lcd.html. To do this, from your file manager, go to /home/pi/WFH_LCD/templates and right click on lcd.html. If you made changes to status.py in the previous step by adding or removing buttons, you’ll need to make corresponding changes to your html file. Important Note: Your desktop computer and your Raspberry Pi must both be connected to the same WiFi network in this step.ġ. Part 4: Updating your Pi from your Desktop & Setting the Python script to run on boot What if we created a website with a button to click for each API instead? We’ll do that in the next step. Testing your API calls individually can be tedious.The LCD screen should not change at this point.Īt this point, you can customize the LCD text functions to statuses that are appropriate for your purposes, making note of the API names that you may change, add, or delete.įor example, If you add a function for ‘Writing a book,’ then you would need to create an API call, perhaps ‘api/book’ to status.py.ĭon’t forget to test all of your API calls in Chromium before moving onto the next step.

#INTERNET UPTIME MONITOR RASPBERRY CODE#

Run status.py code by clicking the paper airplane icon in Geany or the Run button in Thonny. You’ll find it in the WFH_LCD folder in your file manager.ħ. Open status.py for editing in Geany or Thonny. Run your updated code to see your text across the LCD screen.Ħ. Optional: Now you can change the text to messages of your choice.ĥ. mylcd.lcd_clear() tells your Pi to clear the LCD.Ĥ.sleep(2) tells your Pi to display each message for 2 seconds before moving forward.If the time that displays is incorrect, please go to Raspberry Pi Configuration -> Localisation tab and “Set Timezone” to your time zone.Function currentTime() takes the current time and formats it to Hour:Minute AM/PM string, i.e.If your string (1st parameter) is longer than 16 characters only the first 16 characters will display on your LCD screen. The first parameter is the text and the second parameter is the line number for the LCD screen. mylcd.lcd_display_string(“Welcome to”, 1) instructs the Pi to display “Welcome to” on the first line of the LCD display.On your LCD screen, there are 2 lines containing 16 characters per line.The command mylcd.lcd_display_screen refers to the file i2c_lcd_driver.py that was included in the github package.Delay securing the lid to the case until after the LCD screen contrast is adjusted later in this tutorial. In order to fit the wires and the LCD screen with the I2C backpack into the case, I slightly bent the pins of the I2C backpack outwards and then inserted the 4 female-to-female wires.ģ. Using 4 M2.5 screws, attach the LCD screen to the lid / front of the case, Push the Raspberry Pi Zero W into the bottom of the case fitted into the 4 pins.Ģ. The case is fitted for a Raspberry Pi Zero W with headers.ġ. The STL files for printing are located here. There is an optional case that can be 3D printed for this project. Connect your power supply to your Raspberry Pi.Connect keyboard, mouse, and monitor to your Raspberry Pi.Insert microSD card formatted with the Raspberry Pi OS.Connect the SCL to pin 5 on the Raspberry Pi.Connect the SDA to pin 3 on the Raspberry Pi.Connect VCC to 5V (pin 2) on the Raspberry Pi.Connect GND to a ground pin on the Raspberry Pi.From the I2C backpack on the LCD screen (using 4 female-to-female jumper wires)








Internet uptime monitor raspberry