Collect manufacturers with only one board
This commit is contained in:
parent
69cf05b7ad
commit
87ed954d97
|
@ -693,32 +693,18 @@ for overlay in overlays:
|
|||
else:
|
||||
o_formfactor = strings['form_undefined']
|
||||
|
||||
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=o_type,
|
||||
formfactor=o_formfactor,
|
||||
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=o_type,
|
||||
formfactor=o_formfactor,
|
||||
manufacturer=overlay['collected'],
|
||||
resource_url=resource_url)
|
||||
})
|
||||
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=o_type,
|
||||
formfactor=o_formfactor,
|
||||
manufacturer=overlay.get('collected', overlay['manufacturer']),
|
||||
resource_url=resource_url)
|
||||
})
|
||||
|
||||
|
||||
def interfaces_menu(current):
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: multi
|
||||
formfactor: HAT
|
||||
manufacturer: InnoRoute GmbH
|
||||
collected: Other
|
||||
description: The Real-Time HAT extends the Gigabit-Ethernet interface of the Raspberry Pi, adding professional networking functions.
|
||||
github: https://github.com/InnoRoute/RealtimeHAT
|
||||
url: https://innoroute.com/realtimehat/
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: audio,io,led,sensor,multi
|
||||
formfactor: HAT
|
||||
manufacturer: pi-top
|
||||
collected: Other
|
||||
description: 7×7 RGB LED matrix, speaker and microphone
|
||||
url: http://pi-top.com/products/pulse
|
||||
github: https://github.com/pi-top/pi-topPULSE
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: power
|
||||
formfactor: pHAT
|
||||
manufacturer: Omzlo
|
||||
collected: Other
|
||||
description: PiVoyager, the smart UPS for the Raspberry Pi
|
||||
url: https://www.omzlo.com/articles/pivoyager-the-smart-ups-for-the-raspberry-pi
|
||||
github: https://github.com/omzlo/pivoyager-hardware
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: motor
|
||||
formfactor: HAT
|
||||
manufacturer: Pololu
|
||||
collected: Other
|
||||
description: A high-power motor driver board for the Raspberry Pi
|
||||
url: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
buy: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: iot,radio
|
||||
formfactor: Custom
|
||||
manufacturer: Z-Wave.Me
|
||||
collected: Other
|
||||
description: Z-Wave transceiver module for Raspberry Pi
|
||||
url: https://z-wave.me/products/razberry/
|
||||
image: 'razberry.png'
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: display, audio, multi, sensor, IO
|
||||
formfactor: pHAT
|
||||
manufacturer: mobiNRG
|
||||
collected: Other
|
||||
description: RPi-Spark pHAT and SDK lets you quickly build Pi GPIO projects.
|
||||
url: https://www.mobinrg.com
|
||||
github: https://github.com/mobinrg/rpi_spark_foundations
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: multi
|
||||
formfactor: HAT
|
||||
manufacturer: InnoRoute GmbH
|
||||
collected: Other
|
||||
description: The Real-Time HAT extends the Gigabit-Ethernet interface of the Raspberry Pi, adding professional networking functions.
|
||||
github: https://github.com/InnoRoute/RealtimeHAT
|
||||
url: https://innoroute.com/realtimehat/
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: audio,io,led,sensor,multi
|
||||
formfactor: HAT
|
||||
manufacturer: pi-top
|
||||
collected: Other
|
||||
description: 7×7 RGB LED matrix, speaker and microphone
|
||||
url: http://pi-top.com/products/pulse
|
||||
github: https://github.com/pi-top/pi-topPULSE
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: power
|
||||
formfactor: pHAT
|
||||
manufacturer: Omzlo
|
||||
collected: Other
|
||||
description: PiVoyager, the smart UPS for the Raspberry Pi
|
||||
url: https://www.omzlo.com/articles/pivoyager-the-smart-ups-for-the-raspberry-pi
|
||||
github: https://github.com/omzlo/pivoyager-hardware
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: motor
|
||||
formfactor: HAT
|
||||
manufacturer: Pololu
|
||||
collected: Other
|
||||
description: A high-power motor driver board for the Raspberry Pi
|
||||
url: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
buy: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: iot,radio
|
||||
formfactor: Custom
|
||||
manufacturer: Z-Wave.Me
|
||||
collected: Other
|
||||
description: Z-Wave transceiver module for Raspberry Pi
|
||||
url: https://z-wave.me/products/razberry/
|
||||
image: 'razberry.png'
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: display, audio, multi, sensor, IO
|
||||
formfactor: pHAT
|
||||
manufacturer: mobiNRG
|
||||
collected: Other
|
||||
description: RPi-Spark pHAT and SDK lets you quickly build Pi GPIO projects.
|
||||
url: https://www.mobinrg.com
|
||||
github: https://github.com/mobinrg/rpi_spark_foundations
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: display, audio, multi, sensor, IO
|
||||
formfactor: pHAT
|
||||
manufacturer: mobiNRG
|
||||
collected: Other
|
||||
description: RPi-Spark pHAT y SDK te permite construir rápidamente proyectos para Raspberry Pi GPIO.
|
||||
url: https://www.mobinrg.com
|
||||
github: https://github.com/mobinrg/rpi_spark_foundations
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: multi
|
||||
formfactor: HAT
|
||||
manufacturer: InnoRoute GmbH
|
||||
collected: Other
|
||||
description: The Real-Time HAT extends the Gigabit-Ethernet interface of the Raspberry Pi, adding professional networking functions.
|
||||
github: https://github.com/InnoRoute/RealtimeHAT
|
||||
url: https://innoroute.com/realtimehat/
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: audio,io,led,sensor,multi
|
||||
formfactor: HAT
|
||||
manufacturer: pi-top
|
||||
collected: Other
|
||||
description: 7×7 RGB LED matrix, speaker and microphone
|
||||
url: http://pi-top.com/products/pulse
|
||||
github: https://github.com/pi-top/pi-topPULSE
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: power
|
||||
formfactor: pHAT
|
||||
manufacturer: Omzlo
|
||||
collected: Other
|
||||
description: PiVoyager, the smart UPS for the Raspberry Pi
|
||||
url: https://www.omzlo.com/articles/pivoyager-the-smart-ups-for-the-raspberry-pi
|
||||
github: https://github.com/omzlo/pivoyager-hardware
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: motor
|
||||
formfactor: HAT
|
||||
manufacturer: Pololu
|
||||
collected: Other
|
||||
description: A high-power motor driver board for the Raspberry Pi
|
||||
url: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
buy: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: iot,radio
|
||||
formfactor: Custom
|
||||
manufacturer: Z-Wave.Me
|
||||
collected: Other
|
||||
description: Z-Wave transceiver module for Raspberry Pi
|
||||
url: https://z-wave.me/products/razberry/
|
||||
image: 'razberry.png'
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: display, audio, multi, sensor, IO
|
||||
formfactor: pHAT
|
||||
manufacturer: mobiNRG
|
||||
collected: Other
|
||||
description: RPi-Spark pHAT and SDK lets you quickly build Pi GPIO projects.
|
||||
url: https://www.mobinrg.com
|
||||
github: https://github.com/mobinrg/rpi_spark_foundations
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: multi
|
||||
formfactor: HAT
|
||||
manufacturer: InnoRoute GmbH
|
||||
collected: Other
|
||||
description: The Real-Time HAT extends the Gigabit-Ethernet interface of the Raspberry Pi, adding professional networking functions.
|
||||
github: https://github.com/InnoRoute/RealtimeHAT
|
||||
url: https://innoroute.com/realtimehat/
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: audio,io,led,sensor,multi
|
||||
formfactor: HAT
|
||||
manufacturer: pi-top
|
||||
collected: Other
|
||||
description: 7×7 RGB LED matrix, speaker and microphone
|
||||
url: http://pi-top.com/products/pulse
|
||||
github: https://github.com/pi-top/pi-topPULSE
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: power
|
||||
formfactor: pHAT
|
||||
manufacturer: Omzlo
|
||||
collected: Other
|
||||
description: PiVoyager, the smart UPS for the Raspberry Pi
|
||||
url: https://www.omzlo.com/articles/pivoyager-the-smart-ups-for-the-raspberry-pi
|
||||
github: https://github.com/omzlo/pivoyager-hardware
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: motor
|
||||
formfactor: HAT
|
||||
manufacturer: Pololu
|
||||
collected: Other
|
||||
description: A high-power motor driver board for the Raspberry Pi
|
||||
url: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
buy: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: iot,radio
|
||||
formfactor: Custom
|
||||
manufacturer: Z-Wave.Me
|
||||
collected: Other
|
||||
description: Z-Wave transceiver module for Raspberry Pi
|
||||
url: https://z-wave.me/products/razberry/
|
||||
image: 'razberry.png'
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: display, audio, multi, sensor, IO
|
||||
formfactor: pHAT
|
||||
manufacturer: mobiNRG
|
||||
collected: Other
|
||||
description: RPi-Spark pHAT and SDK lets you quickly build Pi GPIO projects.
|
||||
url: https://www.mobinrg.com
|
||||
github: https://github.com/mobinrg/rpi_spark_foundations
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: multi
|
||||
formfactor: HAT
|
||||
manufacturer: InnoRoute GmbH
|
||||
collected: Other
|
||||
description: The Real-Time HAT extends the Gigabit-Ethernet interface of the Raspberry Pi, adding professional networking functions.
|
||||
github: https://github.com/InnoRoute/RealtimeHAT
|
||||
url: https://innoroute.com/realtimehat/
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: audio,io,led,sensor,multi
|
||||
formfactor: HAT
|
||||
manufacturer: pi-top
|
||||
collected: Other
|
||||
description: 7×7 RGB LED matrix, speaker and microphone
|
||||
url: http://pi-top.com/products/pulse
|
||||
github: https://github.com/pi-top/pi-topPULSE
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: power
|
||||
formfactor: pHAT
|
||||
manufacturer: Omzlo
|
||||
collected: Other
|
||||
description: PiVoyager, the smart UPS for the Raspberry Pi
|
||||
url: https://www.omzlo.com/articles/pivoyager-the-smart-ups-for-the-raspberry-pi
|
||||
github: https://github.com/omzlo/pivoyager-hardware
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: motor
|
||||
formfactor: HAT
|
||||
manufacturer: Pololu
|
||||
collected: Other
|
||||
description: A high-power motor driver board for the Raspberry Pi
|
||||
url: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
buy: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: iot,radio
|
||||
formfactor: Custom
|
||||
manufacturer: Z-Wave.Me
|
||||
collected: Other
|
||||
description: Z-Wave transceiver module for Raspberry Pi
|
||||
url: https://z-wave.me/products/razberry/
|
||||
image: 'razberry.png'
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: display, audio, multi, sensor, IO
|
||||
formfactor: pHAT
|
||||
manufacturer: mobiNRG
|
||||
collected: Other
|
||||
description: RPi-Spark pHAT and SDK lets you quickly build Pi GPIO projects.
|
||||
url: https://www.mobinrg.com
|
||||
github: https://github.com/mobinrg/rpi_spark_foundations
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: multi
|
||||
formfactor: HAT
|
||||
manufacturer: InnoRoute GmbH
|
||||
collected: Other
|
||||
description: The Real-Time HAT extends the Gigabit-Ethernet interface of the Raspberry Pi, adding professional networking functions.
|
||||
github: https://github.com/InnoRoute/RealtimeHAT
|
||||
url: https://innoroute.com/realtimehat/
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: audio,io,led,sensor,multi
|
||||
formfactor: HAT
|
||||
manufacturer: pi-top
|
||||
collected: Other
|
||||
description: 7×7 RGB LED matrix, speaker and microphone
|
||||
url: http://pi-top.com/products/pulse
|
||||
github: https://github.com/pi-top/pi-topPULSE
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: power
|
||||
formfactor: pHAT
|
||||
manufacturer: Omzlo
|
||||
collected: Other
|
||||
description: PiVoyager, the smart UPS for the Raspberry Pi
|
||||
url: https://www.omzlo.com/articles/pivoyager-the-smart-ups-for-the-raspberry-pi
|
||||
github: https://github.com/omzlo/pivoyager-hardware
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: motor
|
||||
formfactor: HAT
|
||||
manufacturer: Pololu
|
||||
collected: Other
|
||||
description: A high-power motor driver board for the Raspberry Pi
|
||||
url: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
buy: https://shop.pimoroni.com/collections/raspberry-pi/products/pololu-dual-g2-high-power-motor-driver-for-raspberry-pi
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: iot,radio
|
||||
formfactor: Custom
|
||||
manufacturer: Z-Wave.Me
|
||||
collected: Other
|
||||
description: Z-Wave transceiver module for Raspberry Pi
|
||||
url: https://z-wave.me/products/razberry/
|
||||
image: 'razberry.png'
|
||||
|
|
|
@ -5,6 +5,7 @@ class: board
|
|||
type: display, audio, multi, sensor, IO
|
||||
formfactor: pHAT
|
||||
manufacturer: mobiNRG
|
||||
collected: Other
|
||||
description: RPi-Spark pHAT and SDK lets you quickly build Pi GPIO projects.
|
||||
url: https://www.mobinrg.com
|
||||
github: https://github.com/mobinrg/rpi_spark_foundations
|
||||
|
|
Loading…
Reference in New Issue