Original VA3HDL YouTube - Presentation video
Hamdash Demo -- Test it here before download
BCAT N4TDX -- by Steve N5NG, in use by the Brevard County (Florida) ARES Team
- Links for Steve's weather and hamradio config.js as .txt files:
FFX DEMS -- by Sandy KQ4DNE for Emergency Management Weather
FFX ARES -- by Sandy KQ4DNE for ARES
WA4MED -- by Matthew WA4MED
W2SZ -- by Brian W2SZ
N2YQT -- by Ryan N2YQT
- Just download the files from the Github repository (hamdash.html, config.js, and wheelzoom.js) and keep them together on the same folder.
- Open hamdash.html with any browser of your preference and you done.
- With any text editor (like Notepad) you can change the source images (can be more than one per box) or the menu options from the config.js file.
YouTube - Configuration instructions contributed by Jason KM4ACK
YouTube - Raspberry Pi instructions contributed by Andreas M0FXB
YouTube - Live Stream with Ham Radio Wilderness Frank KG6NLW
YouTube - Live Stream with Temporarily Offline Ham Radio KM9G
YouTube - Ham Dashboard on Inovato Quadra by Peter KJ5AJB
YouTube - French review and instructions by Jean-Benard F5SVP
YouTube - Repaso e instrucciones en Español con Jose EA8EE
Docker version -- by Michael Stevens
- Double click on an image to expand to full screen.
- Double click again to close full screen view.
- Right click on an image to display the next one. (In the latest version is possible to add multiple images per box.)
- The content refreshes automatically every 5 minutes.
Is that easy!
73 de Pablo, VA3HDL
This error can occur if the server has certain security measures in place, such as the x-frame-options header, which prevents its content from being embedded on other websites using iframes.
-
Login via ssh to the pi-star then run this command to switch to Read/Write mode:
rpi-rw
-
Edit the file nginx security.conf file:
sudo nano /etc/nginx/default.d/security.conf
-
comment the line below with a "#" in front, like this:
# add_header X-Frame-Options "SAMEORIGIN";
-
Run this command to switch back to Read Only mode:
rpi-ro
-
Now you can either reboot your Pi-Star, or just restart the nginx service:
sudo systemctl restart nginx.service
There is very little that can be done on the client side if the source site does not allow embedding the site inside another page (like the dashboard!) specially if the user can't change the server settings (most cases.)
As a workaround for these issues, I've tested running a local proxy on my computer to strip out the x-frame-options header coming from the source server and it worked well on some cases. But setting up a proxy adds another layer of complexity to the setup.
If you want to upgrade to the latest version, the only file you need to update is hamdash.html (do not overwrite your config.js file.)
Check updated demo!
- Added website capability to tiles using "iframe|" keyword before the tile URL. Check the updated config.js file for usage examples. The tiles can contain any website that supports embedding using iFrame, including live YouTube videos!
- Added "Discussions" to GitHub options for users to share their menu and image sources and anything else interesting -- https://github.com/VA3HDL/hamdashboard/discussions
- Add version check and minor fixes.
- Removed 5 minutes page autorefresh. Now all tiles refresh separatelly (at same or different intervals.) So there is no longer needed refresh the entire page.
-
Full screen images will rotate with mouse right click (when there is more than one image on the selected tile)
-
Added the ability to set individual image rotation at different intervals per tile adding a line like this at the end of the config.js file:
const tileDelay = [5000,4000,3000,2000,1000,6000,7000,8000,9000,8500,7500,6500];
- Added menu option (right side menu) to display on screen the various sources for images and menu options to facilitate sharing URL sources in our user community
- Added support to play videos (along with the images.) Some modernized sites provide .mp4 videos instead of animated GIFS.
- Added image loading error handling
- Added workaround to prevent images being cached on the browser and not getting updated
- Moved the configuration parts of the JavaScript code to its own file "config.js" so it is easy to upgrade after updates to the main code. Suggested by Lou KI5FTY.
- Improved menu usability
- Removed dependencies to local installed fonts. Fonts now are loaded from Google Fonts directly to ensure consistency.
- Ability to add multiple images per position. Images are rotated automatically every 30 seconds.
- Autorefresh is now paused automatically when switching to a website (from menu) or when an image is zoomed-in to full screen
- Moved configuration variables to the top of the script and added extra commentary to ease the initial setup
- Added menu to the right of the page. Now the left menu has ham radio links and right menu has weather links
Tutorial contributed by Robert W3RDW