Difference between revisions of "Widget:Logo"

From Hackerspace ACKspace
Jump to: navigation, search
m (Added arbitrary (13) packet data offset (LEDsleeve skips the first 4 LEDs in its packets))
m (added python reference, changed arbitrary offset to 93 to play well with the fire animation)
Line 33: Line 33:
 
* [https://github.com/ACKspace/espixelflut/tree/master/chrome/FlutLogo%20UDP%20connector%20app FlutLogo UDP connector app] the app that listens to UDP ART-net packets and connects to the browser extension
 
* [https://github.com/ACKspace/espixelflut/tree/master/chrome/FlutLogo%20UDP%20connector%20app FlutLogo UDP connector app] the app that listens to UDP ART-net packets and connects to the browser extension
 
* [https://github.com/ACKspace/espixelflut/tree/master/chrome/FlutArt FlutArt]: an ART-net app that can be used to control lights (which also works on the browser extension)
 
* [https://github.com/ACKspace/espixelflut/tree/master/chrome/FlutArt FlutArt]: an ART-net app that can be used to control lights (which also works on the browser extension)
 +
 +
Note that if you want to use the [[LED sleeve]] [[GitHub::https://github.com/AlbertVos/bitlair-ohm2013-ledstrip-contol|python code from bitlair]], you have to provide a different listening port to avoid conflicts, like this:
 +
<code>./fire2.py port=0 addr='[("127.0.0.1",6454)]'</code>
  
 
== Copy to your site ==
 
== Copy to your site ==
Line 417: Line 420:
 
         var l = d.length;
 
         var l = d.length;
 
         var m = treeLights.length;
 
         var m = treeLights.length;
         var o = 13;
+
         var o = 93;
 
         for ( var n=0; n < m; ++n )
 
         for ( var n=0; n < m; ++n )
 
         {
 
         {

Revision as of 13:18, 28 November 2021

This widget creates an animated themed ACKspace logo.

Created by xopr

Using this widget

To insert this widget, use the following code:

{{#widget:Logo
|image=/w/images/e/e9/ACKsmass_logo.png
|width=600px
|height=200px
|padding=8px
|float=right
}}

This will give the following result:

Notes

  • it will display snow in December - March and will show Christmas lights between 7 December and 7 January
  • image is mandatory, the rest is optional.
    it also must be written without protocol since colon (:) is not allowed, and may be relative, for example: //ackspace.nl/w/images/e/e9/ACKsmass_logo.png or /w/images/e/e9/ACKsmass_logo.png
  • You must provide a unit for the sizes (i.e. px, %, etc.)

Also note that there is a chain of browser extensions and apps within the espixelflut github repo:

Note that if you want to use the LED sleeve python code from bitlair, you have to provide a different listening port to avoid conflicts, like this: ./fire2.py port=0 addr='[("127.0.0.1",6454)]'

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Logo article.