mattizz'z weblog

Een rustpunt in barre tijden

Bladeren van Posts gepubliceerd door admin

Om de sunsonic muziek service te koppelen aan de Sonos om via de Sonos app de Subsonis muziek af te spelen, doe het volgende:
Open http://SONOS_IP:1400/customsd.htm in a browser.
Enter the following values in the web form:
SID – Any legal value except 242
Service Name – Any name, for instance “Subsonic Remote”
Endpoint URL – http://SUBSONIC_IP:4040/ws/Sonos?ip=SUBSONIC_IP
Secure Endpoint URL – http://SUBSONIC_IP:4040/ws/Sonos?ip=SUBSONIC_IP
Polling Interval – 1200
Authentication – Session ID
Strings Table – Version: 6, URI: http://SUBSONIC_IP:4040/sonos/strings.xml
Presentation Map – Version: 3, URI: http://SUBSONIC_IP:4040/sonos/presentationMap.xml
Container Type – Music Service
Capabilities – Search, Favorites, User Content Playlists, Extended Metadata

Resultaat ziet er in de Sonos app uit zoals hieronder is weergegeven, muziek kan rechtstreeks over de Sonos worden afgespeeld:

Sonos.jpg

= Getest en werkend op een Android Tablet =
Start Reddit
Ga naar reddit.com/r/soccerstreams
ga bij een wedstrijd onder de acestreamlinks staan. kies voor share
paste de inhoud naar een teksteditor en prepareer de link tot het onderstaande:
acestream://6244b438f15775dd6843d017c6dfa326729e6474

Start de ace stream player op en plak de url van hierboven bij “enter content id”
speel af met VLC
stream via VLC naar de Chromecast

Gladys Knight & The Pips: “The Way We Were – Try To Remember”

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Hey, you know, everybody’s talkin’ about the good old days, right
Everybody, the good old days, the good old days
Well, let’s talk about the good old days
Come to think of it as, as bad as we think they are
These will become the good old days for our children, hum
Why don’t we, ah
Try to remember that kind of september, when
When life was slow and oh, so mellow, hum
Try to remember, and if you remember then follow
Oh, why does it seem the past is always better
We look back and think
The winters were warmer
The grass was greener
The skies were bluer
And smiles were bright
Can it be that it was all so simple then
Or has time rewritten every line
And if we had the chance to do it all again
Tell me
Would we
Could we
Memories, like the corners of my mind
Misty watercolor memories
Of the way we were
Scattered pictures of the smiles we left behind
Smiles we gave to one another
For the way we were
Hahaa
Oh, can it be that it was all so simple then
Or has time rewritten every line
And if we had the chance to do it all again
Tell me, haha
Would we
Could we
Memories, may be beautiful and yet
What’s too painful to remember
We simply choose to forget
So it’s the laughter we will remember
Whenever we remember
The way we were
Remember, the way we were

Songwriters: Alan Bergman / Marilyn Bergman / Marvin Hamlisch
Songteksten voor The Way We Were – Try To Remember © Sony/ATV Music Publishing LLC

Op deze website https://www.ztatz.nl/slimme-meter/p1-monitor/ wordt uitgelegd hoe je vrij simpel mbv een zogenaamde P1 kabel en een Raspberry Pi 3 Model B+ je slimme meter live kunt uitlezen en over langere periode kunt zien hoeveel stroom en gas je wanneer verbruikt. Er is ook een weer-API aan gekoppeld zodat bv gasverbruik aan de buitentemperatuur gerelateerd is.
Het IP-adres en port 80 van de Raspberry geport-forward zodat ik er buiten het netwerk ook toegang toe heb. Daar weer zoals in het vorige artikel uitgelegd een “Password Protect Web Directories in Nginx” voorgezet zodat niet iedereen erbij kan.

Aangezien ik nog een ongebruikte oude Samsung Galaxy Tab 4 (7.0) had liggen, deze in de meterkast gemonteerd zodat de actuele meterstanden altijd beschikbaar zijn.
Hieronder een foto hoe de Samsung Tab in de meterkast is aangebracht:

monitor.jpg

Het is makkelijk als de RPI een vast ip-adres in het netwerk heeft. Dat is simpel als volgt uit te voeren waarbij alleen de wlan0 instellingen hoeven worden ingegeven als de RPI alleen draadloos wordt gebruikt. Om het interne ip-adres vast te stellen om via ssh in te loggen kan gebruik gemaakt worden van de app “fing”:

Edit the file /etc/dhcpcd.conf as follows:

Type sudo nano /etc/dhcpcd.conf at the command prompt.

Scroll to the bottom of the script, and add the following lines:

interface eth0

static ip_address=192.168.0.2/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

interface wlan0

static ip_address=192.168.0.2/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

Step 1 — Installing Apache Tools

You’ll need the htpassword command to configure the password that will restrict access to the target website. This command is part of the apache2-utils package, so the first step is to install that package.

sudo apt-get install apache2-utils

Step 2 — Setting Up HTTP Basic Authentication Credentials

In this step, you’ll create a password for the user running the website.

That password and the associated username will be stored in a file that you specify. The password will be encrypted and the name of the file can be anything you like. Here, we use the file /etc/nginx/.htpasswd and the username nginx.

To create the password, run the following command. You’ll need to authenticate, then specify and confirm a password.

sudo htpasswd -c /etc/nginx/.htpasswd nginx

You can check the contents of the newly-created file to see the username and hashed password.

cat /etc/nginx/.htpasswd

Example /etc/nginx/.htpasswd

nginx:$apr1$ilgq7ZEO$OarDX15gjKAxuxzv0JTrO/

Step 3 — Updating the Nginx Configuration

Now that you’ve created the HTTP basic authentication credential, the next step is to update the Nginx configuration for the target website to use it.

HTTP basic authentication is made possible by the auth_basic and auth_basic_user_file directives. The value of auth_basic is any string, and will be displayed at the authentication prompt; the value of auth_basic_user_file is the path to the password file that was created in Step 2.

Both directives should be in the configuration file of the target website, which is normally located in /etc/nginx/sites-available directory. Open that file using nano or your favorite text editor.
sudo nano /etc/nginx/sites-available/default

Under the location section, add both directives:

server_name localhost;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
auth_basic “Private Property”;
auth_basic_user_file /etc/nginx/.htpasswd;
}
. . .

Save and close the file.
Step 4 — Testing the Setup

To apply the changes, first reload Nginx.
sudo service nginx reload

Zo ziet mijn /etc/nginx/sites-available/default eruit op de Raspberry Pi 3 B+ waar de monitor 1 (slimme meter) software op draait (Bijna alle #-regels weggelaten):

server {
listen 80 default_server;
listen [::]:80 default_server;

root /p1mon/www;
index index.php index.html index.htm;

server_name localhost;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
auth_basic “Inlog”;
auth_basic_user_file /etc/nginx/.htpasswd;

}

# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_read_timeout 305;
}
}

https://www.digitalocean.com/community/tutorials/how-to-set-up-basic-http-authentication-with-nginx-on-ubuntu-14-04

The group was formed in Philadelphia during 1976 by bassist Cedric Napoleon, drummer Curtis Harmon, and keyboardist James Lloyd who were all teenagers at the time. The group based their name on “Pieces of Dreams”, a Michel Legrand tune recorded by Stanley Turrentine that they regularly performed. During 1981 Pieces of a Dream had a minor soul hit with ‘Warm Weather’ which was recorded on Elektra Records and co-produced by Dexter Wansel. In late 1983, the group had their most successful single, “Fo-Fi-Fo”, which peaked at No. 13 on the US soul chart.
Tracy Hamlin, was the group’s lead vocalist from 2002 to 2005 and sings on two of their albums, Love Silhouette and No Assembly Required.

piecesofadream.jpg

“Warm weather” van het album “Pieces of a Dream”

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

“Watch your step” van het album “All In”

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Om deze verbinding tot stand te brengen is dit pad nodig: //192.168…./music met de admin als inlog. Met de standaard SMB settings werkt dit niet maar met onderstaande tip wel:

Sonos insist you use an old, dated, much less secure file sharing protocol that even the developer suggest should be disabled. As above, maybe you need to allow it on your NAS – although that’s not the usual error for SMB..
On the NAS, check Control Panel – File Services – Advanced Settings and minimum SMB protocol. Make sure it’s at the lowest security level that is SMB 1.0 (if you wish to continue to use the NAS to share the music).
(If this is the issue, I’d suggest creating a new user on the NAS (sonos?) and giving it read only access to the music share. Use these credentials when adding the share in Sonos.)

screenshot1.jpg

screenshot2.jpg

Van hun eigen website website https://vivaldi.com

Het is jouw web. Browse het zoals jij dat wilt
Je brengt veel tijd door op het web. Je verdient een browser die persoonlijk is, de functies heeft die je nodig hebt en de flexibiliteit die je zo graag wil. Je verdient Vivaldi, dus dat hebben we voor je gemaakt. Geniet ervan!

vivaldi.jpg

Op deze link naar Computer!Totaal is meer informatie te vinden over de mogelijkheden en het gebruik van deze browser.

Dynasty.jpg

Dynasty was an American band, based in Los Angeles, California, created by producer and SOLAR Records label head Dick Griffey, and record producer Leon Sylvers III. The band was known for their dance/pop numbers during the late 1970s and 1980s. Keyboardist Kevin Spencer and vocalists Nidra Beard and Linda Carriere originally comprised the group.[1]
Van Wikipedia https://en.wikipedia.org/wiki/Dynasty_(band)

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.