'collected' tag to lump manufacturers with poor value filters together

This commit is contained in:
RogueM 2017-03-26 13:34:43 +01:00
parent e19fef2bbd
commit 68bbe8ecf8
21 changed files with 162 additions and 159 deletions

View File

@ -109,9 +109,11 @@ def load_overlay(overlay):
if 'type' not in loaded:
loaded['type'] = strings['group_other']
if 'manufacturer' in loaded:
if 'manufacturer' in loaded and 'collected' not in loaded:
manu_link = '<a href="/boards#manufacturer={manufacturer}">{manufacturer}</a>'.format(manufacturer=loaded['manufacturer'])
details.append(strings['made_by'].format(manufacturer=manu_link))
elif 'manufacturer' in loaded and 'collected' in loaded:
details.append(strings['made_by'].format(manufacturer=loaded['manufacturer']))
if 'pincount' in loaded:
'''
@ -561,7 +563,6 @@ overlays_html is generated with all types for legacy reasons
'''
for overlay in overlays:
link = (overlay['page_url'], overlay['name'])
overlays_html += [link]
@ -592,19 +593,26 @@ for overlay in overlays:
if 'formfactor' not in overlay:
print('Warning! -> {name} missing formfactor'.format(name=overlay['name']))
'''if overlay['manufacturer'] not in boards_page.keys():
boards_page[overlay['manufacturer']] = []
boards_manufacturers.append(overlay['manufacturer'])'''
boards_page.append({'name': overlay['name'], 'html': '<li class="board" data-type="{type}" data-manufacturer="{manufacturer}" data-form-factor="{formfactor}"><a href="{base_url}{page_url}"><img src="{resource_url}boards/{image}" /><strong>{name}</strong></a></li>'.format(
image=image,
name=overlay['name'],
page_url=overlay['page_url'],
base_url=base_url,
type=overlay['type'] if 'type' in overlay else strings['group_other'],
formfactor=overlay['formfactor'] if 'formfactor' in overlay else strings['form_undefined'],
manufacturer=overlay['manufacturer'],
resource_url=resource_url)})
if 'collected' not in overlay:
boards_page.append({'name': overlay['name'], 'html': '<li class="board" data-type="{type}" data-manufacturer="{manufacturer}" data-form-factor="{formfactor}"><a href="{base_url}{page_url}"><img src="{resource_url}boards/{image}" /><strong>{name}</strong></a></li>'.format(
image=image,
name=overlay['name'],
page_url=overlay['page_url'],
base_url=base_url,
type=overlay['type'] if 'type' in overlay else strings['group_other'],
formfactor=overlay['formfactor'] if 'formfactor' in overlay else strings['form_undefined'],
manufacturer=overlay['manufacturer'],
resource_url=resource_url)})
else:
boards_page.append({'name': overlay['name'], 'html': '<li class="board" data-type="{type}" data-manufacturer="{manufacturer}" data-form-factor="{formfactor}"><a href="{base_url}{page_url}"><img src="{resource_url}boards/{image}" /><strong>{name}</strong></a></li>'.format(
image=image,
name=overlay['name'],
page_url=overlay['page_url'],
base_url=base_url,
type=overlay['type'] if 'type' in overlay else strings['group_other'],
formfactor=overlay['formfactor'] if 'formfactor' in overlay else strings['form_undefined'],
manufacturer=overlay['collected'],
resource_url=resource_url)})
@ -729,12 +737,20 @@ for url in pages:
if 'class' in pages[url] and pages[url]['class'] == 'board':
feat_boards_html = ''
body_class = 'board'
crumbtrail = '<div id="crumbtrail"><p><a href="/">{home}</a> &raquo; <a href="/boards">{boards}</a> &raquo; <a href="/boards#manufacturer={manufacturer}">{manufacturer}</a></p></div>'.format(
title=pages[url]['name'],
manufacturer=pages[url]['manufacturer'],
home=strings['home'],
boards=strings['boards']
)
if not 'collected' in pages[url]:
crumbtrail = '<div id="crumbtrail"><p><a href="/">{home}</a> &raquo; <a href="/boards">{boards}</a> &raquo; <a href="/boards#manufacturer={manufacturer}">{manufacturer}</a></p></div>'.format(
title=pages[url]['name'],
manufacturer=pages[url]['manufacturer'],
home=strings['home'],
boards=strings['boards']
)
else:
crumbtrail = '<div id="crumbtrail"><p><a href="/">{home}</a> &raquo; <a href="/boards">{boards}</a> &raquo; <a href="/boards#manufacturer={manufacturer}">{manufacturer}</a></p></div>'.format(
title=pages[url]['name'],
manufacturer=pages[url]['collected'],
home=strings['home'],
boards=strings['boards']
)
if url == 'boards':
body_class = 'boards-page'

View File

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -1,15 +1,16 @@
<!--
---
name: RabbitMax Flex
name: Anavi Flex
class: board
type: io,led,multi,relay,sensor
formfactor: HAT
manufacturer: Anavi
collected: Other
description: RabbitMax Flex is a Raspberry Pi HAT board for IoT with an IR transmitter and receiver, relay, button, buzzer, RGB LED, 5x cable slots for I2C sensors, and a slot for 16x2 LCD display module.
url: http://rabbitmax.com/
github: https://github.com/RabbitMax
buy: https://www.indiegogo.com/projects/rabbitmax-flex-raspberry-pi-hat-for-iot
image: 'rabbitmax-flex.png'
image: 'anavi-flex.png'
pincount: 40
eeprom: yes
power:
@ -60,9 +61,9 @@ pin:
'40':
name: LCD Display (E)
-->
#RabbitMax Flex
# Flex
Flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
THe Anavi Flex is a flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
RabbitMax Flex Raspberry Pi HAT includes:
@ -74,8 +75,3 @@ RabbitMax Flex Raspberry Pi HAT includes:
* RGB LED
* Slot for modular LCD character display
* Slots for up to 5 plug and play I2C sensors
Some useful resources how to get started with RabbitMax Flex Raspberry Pi HAT:
* User's manual: [http://rabbitmax.com/files/rabbitmax-flex.pdf](http://rabbitmax.com/files/rabbitmax-flex.pdf)
* Open source sample applications in Python and C: [https://github.com/RabbitMax/rabbitmax-examples](http://rabbitmax.com/files/rabbitmax-flex.pdf)

View File

@ -125,3 +125,4 @@ overlays:
- motozero
- adafruit-joybonnet
- vandenbosch-gpio-input
- anavi-flex

View File

@ -4,7 +4,8 @@ name: GPIO Button Adapter
class: board
type: io
formfactor: Custom
manufacturer: Indie
manufacturer: Frederick Vandenbosch
collected: Other
description: A simple way to add input button to your Raspberry Pi
url: http://frederickvandenbosch.be/?p=2462
image: 'vandenbosch-gpio-input.png'
@ -34,7 +35,7 @@ pin:
-->
# GPIO Button Adapter
The GPIO Button Adapter by Frederick Vandenbosch is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
The GPIO Button Adapter is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
When a button is pressed, the GPIO gets connected to ground. The internal pull-up resistors on the Pi should be used so that the GPIO are HIGH when idle, LOW when the button is pressed.

View File

@ -1,15 +1,16 @@
<!--
---
name: RabbitMax Flex
name: Anavi Flex
class: board
type: io,led,multi,relay,sensor
formfactor: HAT
manufacturer: Anavi
collected: Other
description: RabbitMax Flex is a Raspberry Pi HAT board for IoT with an IR transmitter and receiver, relay, button, buzzer, RGB LED, 5x cable slots for I2C sensors, and a slot for 16x2 LCD display module.
url: http://rabbitmax.com/
github: https://github.com/RabbitMax
buy: https://www.indiegogo.com/projects/rabbitmax-flex-raspberry-pi-hat-for-iot
image: 'rabbitmax-flex.png'
image: 'anavi-flex.png'
pincount: 40
eeprom: yes
power:
@ -60,9 +61,9 @@ pin:
'40':
name: LCD Display (E)
-->
#RabbitMax Flex
# Flex
Flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
THe Anavi Flex is a flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
RabbitMax Flex Raspberry Pi HAT includes:
@ -74,8 +75,3 @@ RabbitMax Flex Raspberry Pi HAT includes:
* RGB LED
* Slot for modular LCD character display
* Slots for up to 5 plug and play I2C sensors
Some useful resources how to get started with RabbitMax Flex Raspberry Pi HAT:
* User's manual: [http://rabbitmax.com/files/rabbitmax-flex.pdf](http://rabbitmax.com/files/rabbitmax-flex.pdf)
* Open source sample applications in Python and C: [https://github.com/RabbitMax/rabbitmax-examples](http://rabbitmax.com/files/rabbitmax-flex.pdf)

View File

@ -4,7 +4,8 @@ name: GPIO Button Adapter
class: board
type: io
formfactor: Custom
manufacturer: Indie
manufacturer: Frederick Vandenbosch
collected: Other
description: A simple way to add input button to your Raspberry Pi
url: http://frederickvandenbosch.be/?p=2462
image: 'vandenbosch-gpio-input.png'
@ -34,7 +35,7 @@ pin:
-->
# GPIO Button Adapter
The GPIO Button Adapter by Frederick Vandenbosch is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
The GPIO Button Adapter is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
When a button is pressed, the GPIO gets connected to ground. The internal pull-up resistors on the Pi should be used so that the GPIO are HIGH when idle, LOW when the button is pressed.

View File

@ -97,7 +97,7 @@ overlays:
- uugear-zero4u
- wifi-pants
- zero-lipo
- rabbitmax-flex
- anavi-flex
- rainbow-hat
- adafruit-speaker-bonnet
- adafruit-gps-hat

View File

@ -1,15 +1,16 @@
<!--
---
name: RabbitMax Flex
name: Anavi Flex
class: board
type: io,led,multi,relay,sensor
formfactor: HAT
manufacturer: Anavi
collected: Other
description: RabbitMax Flex is a Raspberry Pi HAT board for IoT with an IR transmitter and receiver, relay, button, buzzer, RGB LED, 5x cable slots for I2C sensors, and a slot for 16x2 LCD display module.
url: http://rabbitmax.com/
github: https://github.com/RabbitMax
buy: https://www.indiegogo.com/projects/rabbitmax-flex-raspberry-pi-hat-for-iot
image: 'rabbitmax-flex.png'
image: 'anavi-flex.png'
pincount: 40
eeprom: yes
power:
@ -60,7 +61,7 @@ pin:
'40':
name: LCD Display (E)
-->
#RabbitMax Flex
# Flex
HAT flexible para Raspberry Pi, útil para proyectos tipo hazlo tú mismo (DIY): estación meteorológica, asistente de escritorio o prototipos de IoT.
@ -74,8 +75,3 @@ Incluye:
* LED RGB
* Espacio para módulo LCD
* Espacio para hasta 5 sensores I2C plug and play
Información útil:
* Manual: [http://rabbitmax.com/files/rabbitmax-flex.pdf](http://rabbitmax.com/files/rabbitmax-flex.pdf)
* Ejemplos de código abierto en Python y C: [https://github.com/RabbitMax/rabbitmax-examples](http://rabbitmax.com/files/rabbitmax-flex.pdf)

View File

@ -125,3 +125,4 @@ overlays:
- motozero
- adafruit-joybonnet
- vandenbosch-gpio-input
- anavi-flex

View File

@ -4,7 +4,8 @@ name: GPIO Button Adapter
class: board
type: io
formfactor: Custom
manufacturer: Indie
manufacturer: Frederick Vandenbosch
collected: Other
description: A simple way to add input button to your Raspberry Pi
url: http://frederickvandenbosch.be/?p=2462
image: 'vandenbosch-gpio-input.png'
@ -34,7 +35,7 @@ pin:
-->
# GPIO Button Adapter
The GPIO Button Adapter by Frederick Vandenbosch is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
The GPIO Button Adapter is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
When a button is pressed, the GPIO gets connected to ground. The internal pull-up resistors on the Pi should be used so that the GPIO are HIGH when idle, LOW when the button is pressed.

View File

@ -1,15 +1,16 @@
<!--
---
name: RabbitMax Flex
name: Anavi Flex
class: board
type: io,led,multi,relay,sensor
formfactor: HAT
manufacturer: Anavi
collected: Other
description: RabbitMax Flex is a Raspberry Pi HAT board for IoT with an IR transmitter and receiver, relay, button, buzzer, RGB LED, 5x cable slots for I2C sensors, and a slot for 16x2 LCD display module.
url: http://rabbitmax.com/
github: https://github.com/RabbitMax
buy: https://www.indiegogo.com/projects/rabbitmax-flex-raspberry-pi-hat-for-iot
image: 'rabbitmax-flex.png'
image: 'anavi-flex.png'
pincount: 40
eeprom: yes
power:
@ -60,9 +61,9 @@ pin:
'40':
name: LCD Display (E)
-->
#RabbitMax Flex
# Flex
Flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
THe Anavi Flex is a flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
RabbitMax Flex Raspberry Pi HAT includes:
@ -74,8 +75,3 @@ RabbitMax Flex Raspberry Pi HAT includes:
* RGB LED
* Slot for modular LCD character display
* Slots for up to 5 plug and play I2C sensors
Some useful resources how to get started with RabbitMax Flex Raspberry Pi HAT:
* User's manual: [http://rabbitmax.com/files/rabbitmax-flex.pdf](http://rabbitmax.com/files/rabbitmax-flex.pdf)
* Open source sample applications in Python and C: [https://github.com/RabbitMax/rabbitmax-examples](http://rabbitmax.com/files/rabbitmax-flex.pdf)

View File

@ -125,3 +125,4 @@ overlays:
- motozero
- adafruit-joybonnet
- vandenbosch-gpio-input
- anavi-flex

View File

@ -4,7 +4,8 @@ name: GPIO Button Adapter
class: board
type: io
formfactor: Custom
manufacturer: Indie
manufacturer: Frederick Vandenbosch
collected: Other
description: A simple way to add input button to your Raspberry Pi
url: http://frederickvandenbosch.be/?p=2462
image: 'vandenbosch-gpio-input.png'
@ -34,7 +35,7 @@ pin:
-->
# GPIO Button Adapter
The GPIO Button Adapter by Frederick Vandenbosch is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
The GPIO Button Adapter is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
When a button is pressed, the GPIO gets connected to ground. The internal pull-up resistors on the Pi should be used so that the GPIO are HIGH when idle, LOW when the button is pressed.

View File

@ -1,15 +1,16 @@
<!--
---
name: RabbitMax Flex
name: Anavi Flex
class: board
type: io,led,multi,relay,sensor
formfactor: HAT
manufacturer: Anavi
collected: Other
description: RabbitMax Flex is a Raspberry Pi HAT board for IoT with an IR transmitter and receiver, relay, button, buzzer, RGB LED, 5x cable slots for I2C sensors, and a slot for 16x2 LCD display module.
url: http://rabbitmax.com/
github: https://github.com/RabbitMax
buy: https://www.indiegogo.com/projects/rabbitmax-flex-raspberry-pi-hat-for-iot
image: 'rabbitmax-flex.png'
image: 'anavi-flex.png'
pincount: 40
eeprom: yes
power:
@ -60,9 +61,9 @@ pin:
'40':
name: LCD Display (E)
-->
#RabbitMax Flex
# Flex
Flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
THe Anavi Flex is a flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
RabbitMax Flex Raspberry Pi HAT includes:
@ -74,8 +75,3 @@ RabbitMax Flex Raspberry Pi HAT includes:
* RGB LED
* Slot for modular LCD character display
* Slots for up to 5 plug and play I2C sensors
Some useful resources how to get started with RabbitMax Flex Raspberry Pi HAT:
* User's manual: [http://rabbitmax.com/files/rabbitmax-flex.pdf](http://rabbitmax.com/files/rabbitmax-flex.pdf)
* Open source sample applications in Python and C: [https://github.com/RabbitMax/rabbitmax-examples](http://rabbitmax.com/files/rabbitmax-flex.pdf)

View File

@ -125,3 +125,4 @@ overlays:
- motozero
- adafruit-joybonnet
- vandenbosch-gpio-input
- anavi-flex

View File

@ -4,7 +4,8 @@ name: GPIO Button Adapter
class: board
type: io
formfactor: Custom
manufacturer: Indie
manufacturer: Frederick Vandenbosch
collected: Other
description: A simple way to add input button to your Raspberry Pi
url: http://frederickvandenbosch.be/?p=2462
image: 'vandenbosch-gpio-input.png'
@ -34,7 +35,7 @@ pin:
-->
# GPIO Button Adapter
The GPIO Button Adapter by Frederick Vandenbosch is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
The GPIO Button Adapter is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
When a button is pressed, the GPIO gets connected to ground. The internal pull-up resistors on the Pi should be used so that the GPIO are HIGH when idle, LOW when the button is pressed.

View File

@ -0,0 +1,77 @@
<!--
---
name: Anavi Flex
class: board
type: io,led,multi,relay,sensor
formfactor: HAT
manufacturer: Anavi
collected: Other
description: RabbitMax Flex is a Raspberry Pi HAT board for IoT with an IR transmitter and receiver, relay, button, buzzer, RGB LED, 5x cable slots for I2C sensors, and a slot for 16x2 LCD display module.
url: http://rabbitmax.com/
github: https://github.com/RabbitMax
buy: https://www.indiegogo.com/projects/rabbitmax-flex-raspberry-pi-hat-for-iot
image: 'anavi-flex.png'
pincount: 40
eeprom: yes
power:
'1':
'2':
ground:
'6':
'9':
'14':
'20':
'25':
'30':
'34':
'39':
pin:
'3':
mode: i2c
'5':
mode: i2c
'7':
name: LCD Display (RS)
'11':
name: IR LED
'12':
name: IR Receiver
'13':
name: LCD Display (Data 0)
'15':
name: LCD Display (Data 1)
'19':
name: LCD Display (Data 2)
'21':
name: LCD Display (Data 3)
'23':
name: Button
mode: input
active: low
'29':
name: Relay
'31':
name: Piezo Buzzer
'33':
name: RGB LED (blue)
'35':
name: RGB LED (green)
'37':
name: RGB LED (red)
'40':
name: LCD Display (E)
-->
# Flex
THe Anavi Flex is a flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
RabbitMax Flex Raspberry Pi HAT includes:
* Relay
* IR LED
* IR photo sensor
* Buzzer
* Button
* RGB LED
* Slot for modular LCD character display
* Slots for up to 5 plug and play I2C sensors

View File

@ -125,3 +125,4 @@ overlays:
- motozero
- adafruit-joybonnet
- vandenbosch-gpio-input
- anavi-flex

View File

@ -1,81 +0,0 @@
<!--
---
name: RabbitMax Flex
class: board
type: io,led,multi,relay,sensor
formfactor: HAT
manufacturer: Anavi
description: RabbitMax Flex is a Raspberry Pi HAT board for IoT with an IR transmitter and receiver, relay, button, buzzer, RGB LED, 5x cable slots for I2C sensors, and a slot for 16x2 LCD display module.
url: http://rabbitmax.com/
github: https://github.com/RabbitMax
buy: https://www.indiegogo.com/projects/rabbitmax-flex-raspberry-pi-hat-for-iot
image: 'rabbitmax-flex.png'
pincount: 40
eeprom: yes
power:
'1':
'2':
ground:
'6':
'9':
'14':
'20':
'25':
'30':
'34':
'39':
pin:
'3':
mode: i2c
'5':
mode: i2c
'7':
name: LCD Display (RS)
'11':
name: IR LED
'12':
name: IR Receiver
'13':
name: LCD Display (Data 0)
'15':
name: LCD Display (Data 1)
'19':
name: LCD Display (Data 2)
'21':
name: LCD Display (Data 3)
'23':
name: Button
mode: input
active: low
'29':
name: Relay
'31':
name: Piezo Buzzer
'33':
name: RGB LED (blue)
'35':
name: RGB LED (green)
'37':
name: RGB LED (red)
'40':
name: LCD Display (E)
-->
#RabbitMax Flex
Flexible HAT for Raspberry Pi suitable for do it yourself (DIY) weather station, automated desk assistant or prototyping Internet of Things (IoT).
RabbitMax Flex Raspberry Pi HAT includes:
* Relay
* IR LED
* IR photo sensor
* Buzzer
* Button
* RGB LED
* Slot for modular LCD character display
* Slots for up to 5 plug and play I2C sensors
Some useful resources how to get started with RabbitMax Flex Raspberry Pi HAT:
* User's manual: [http://rabbitmax.com/files/rabbitmax-flex.pdf](http://rabbitmax.com/files/rabbitmax-flex.pdf)
* Open source sample applications in Python and C: [https://github.com/RabbitMax/rabbitmax-examples](http://rabbitmax.com/files/rabbitmax-flex.pdf)

View File

@ -4,7 +4,8 @@ name: GPIO Button Adapter
class: board
type: io
formfactor: Custom
manufacturer: Indie
manufacturer: Frederick Vandenbosch
collected: Other
description: A simple way to add input button to your Raspberry Pi
url: http://frederickvandenbosch.be/?p=2462
image: 'vandenbosch-gpio-input.png'
@ -34,7 +35,7 @@ pin:
-->
# GPIO Button Adapter
The GPIO Button Adapter by Frederick Vandenbosch is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
The GPIO Button Adapter is a clean and easy way to add buttons to a Pi Zero alongside a pHAT (or HAT).
When a button is pressed, the GPIO gets connected to ground. The internal pull-up resistors on the Pi should be used so that the GPIO are HIGH when idle, LOW when the button is pressed.