https://www.youtube.com/watch?v=rF2yJ_uKY2E
install on Rpi/Libreelec:
All addons > PVR clients >Tvheadend HTSP Client
All addons > Services > Tvheadend Server
on remote PC (web browser):
rpi Ip http://x.x.x.x:9981/extjs.html
configure TVHeadend (for Croatia select Czech preset)
scan
preview
back to libreelec:
Tvheadend HTSP Client > Settings > enter user/pass
tv > guide
Force hdmi audio. Use HDMI port closest to power.
setup skripta nije setupirala ili je prepeglala reset pin pa se concentrator nije mogao startati:
- u fajlu "start.sh" izmjeni "SX1301_RESET_BCM_PIN=25"
nije radio ni shutdown button (setup bez neopixel ledica): - u fajlu "/opt/loragw/monitor-gpio.py" promjeniti gpio_pin u 17 (tamo je spojen botun)
- u istom fajlu odkomentirat liniju #os.system("sudo halt &")
usb otg ethernet connection
Connect using USB TTL adapter (CP2102)
Connections from the USB TTL adapter to the Pi:
GND (ground) > GPIO pin 06 (GND)
RXD > GPIO pin 08 (TXD)
TXD > GPIO pin 10 (RXD)
sudo screen /dev/ttyUSB0 115200
optional: hide taskbar:
Right-click on the taskbar and select "Panel Settings". Click on the "Advanced" tab, and check "Minimize panel when not in use". 0px
za processing:
@/usr/local/bin/processing-java --sketch=/home/pi/Desktop/SKETCH --run
sudo apt-get install -y ttf-mscorefonts-installer unclutter x11-xserver-utils
sudo nano .config/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
BEGIN ADDED
Normal website that does not need any exceptions
@/usr/bin/chromium-browser --disk-cache-dir=/dev/null --incognito --start-maximized --kiosk http://gordonturner.com
Enable mixed http/https content, remember if invalid certs were allowed (ie self signed certs)
@/usr/bin/chromium-browser --incognito --start-maximized --kiosk --allow-running-insecure-content --remember-cert-error-decisions http://gordonturner.com
@unclutter
@xset s off
@xset s noblank
@xset -dpms
END ADDED
enable php shortcodes:
sudo nano /etc/php/5.6/apache2/php.ini
short_open_tag = On
permissons (for local setup)
chown -R www-data.www-data /var/www
chmod -R 777 /var/www
restart apache-a (two ways)
service apache2 restart
/etc/init.d/apache2 restart
Set up TFTPd32 as a DHCP server. Download it, and run the executable.
Settings: uncheck all other services except DHCP, then goto the DHCP tab and enter these settings:
IP Pool Start address: 192.168.1.100
Size of pool (use something small): 20
Def router 192.168.0.0
Mask: 255.255.255.0
DNS Servers: 192.168.0.0
WINS Server: 192.168.0.0
Save it and restart TFTPd32. Connect you Pi up and it will be assigned an IP address, then just use something like PuTTY to connect to the IP address it is assigned which will show in TFTPd32.
If it doesn't work the first time, make sure the server interfaces drop down is set to your ethernet card, or a software loopback.
In Arduino, you can do this with WiFi.mode(x), where x can be WIFI_AP, WIFI_STA, WIFI_AP_STA or WIFI_OFF, for example:
WiFi.mode(WIFI_STA);
will set the ESP into client ("Station") mode.
I also use a little "reset" script in a separate sketch, but I have avoided using persistent...
WiFi.softAPdisconnect();
WiFi.disconnect();
ESP.eraseConfig();
while(1); // deliberately crash
The forced crash is because apparently there is a bug in the SDK firmware / hardware that ESP.restart doesn't always clear things - again this may have subsequently been fixed.
Next time the code comes up I nake sure the following runs:
WiFi.mode(WIFI_STA);
WiFi.setAutoConnect(true);
Because for my project(s) I always want my devices to autoconnect in STA mode (which is the factory-delivered state)
WiFi.softAPdisconnect();
WiFi.disconnect();
WiFi.mode(WIFI_STA);
delay(100);
no need for finding and memorizing devices local IP addresses
npr. 1024×768@60Hz:
/opt/vc/bin/tvservice --explicit='DMT 16 HDMI'