Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mehr routerpics einbauen #33

Open
rubo77 opened this issue May 25, 2016 · 2 comments
Open

mehr routerpics einbauen #33

rubo77 opened this issue May 25, 2016 · 2 comments

Comments

@rubo77
Copy link
Contributor

rubo77 commented May 25, 2016

Hier gibts inzw. mehr: https://github.com/Moorviper/meshviewer_hwpics/tree/master/nodes

für die firmware seite

@fsteinel
Copy link
Contributor

Quelle

Images created by Moorviper

These images are free images. source: https://github.com/Moorviper/Freifunk-Router-Anleitungen/wiki

downloaded and resized with

cd /opt
mkdir hardware
cd hardware
git clone https://github.com/Moorviper/Freifunk-Router-Anleitungen
cd Freifunk-Router-Anleitungen/router
mkdir fronts
for i in *-*; do cd $i; for f in *front*.jpg; do echo "$f";done; cd ../fronts/; ln -s ../$i/$f $i.jpg;cd ..;done
cd fronts/
for i in *.jpg; do
new="$(basename $i .jpg \
| sed -e 's/\.\(img\|vdi\|vmdk\)$//g' \
| sed -E 's/-v[0-9\.]+$//')_100x60.png"
| sed -E 's/-rev-[a-z][0-9\.]+$//')_100x60.png"
#echo $new; done
touch $new
convert $i -resize 100x60 $new
done

convert  tp-link-tl-wr841n-nd-v11.jpg -resize 100x60 tp-link-tl-wr841n-nd_100x60.png
rm tp-link-tl-wr703n_100x60.png
touch tp-link-tl-wr703n_100x60.png
rm tp-link-tl-wr2543n-nd_100x60.png
touch tp-link-tl-wr2543n-nd_100x60.png

Point the Webserver to this directory.
For Apache add these lines:

	#Router Node Pictures
	Alias /images/models/ /opt/hardware/Freifunk-Router-Anleitungen/router/fronts/
	<Directory /opt/hardware/Freifunk-Router-Anleitungen/router/fronts/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Require all granted
		ExpiresByType image/png "access plus 1 week"
		ExpiresByType image/jpeg "access plus 1 week"
	</Directory>

to the ffki-startseite config.

@rubo77
Copy link
Contributor Author

rubo77 commented Jan 20, 2017

I don't like the redirection to other sites. It would be a cleaner solution, if all needed images are downloaded and converted, so they can be hosted in the same folder as the "startseite" (Single point of failure)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants