Feature: Allow links in device profiles
These links will be shown on the hardware settings page.
This commit is contained in:
parent
b4ead9d6ec
commit
7950f92d8b
@ -1,6 +1,12 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "NRF, LEDs, Display",
|
"name": "NRF, LEDs, Display",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://shop.blinkyparts.com/de/OpenDTU-NRF-Deine-Auswertung-fuer-deine-Balkonsolaranlage-kompatibel-zu-Hoymiles-HM-Serie-NRF-Modul/blink237542"},
|
||||||
|
{"name": "Manual DE", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_de.pdf"},
|
||||||
|
{"name": "Manual EN", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_en.pdf"},
|
||||||
|
{"name": "Schematic", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/ibom.html"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 19,
|
"miso": 19,
|
||||||
"mosi": 23,
|
"mosi": 23,
|
||||||
@ -21,6 +27,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CMT, LEDs, Display",
|
"name": "CMT, LEDs, Display",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://shop.blinkyparts.com/de/OpenDTU-CMT-Deine-Auswertung-fuer-deine-Balkonsolaranlage-kompatibel-zu-Hoymiles-HMS-und-HMT-Serie-CMT-Modul/blink238342"},
|
||||||
|
{"name": "Manual DE", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_de.pdf"},
|
||||||
|
{"name": "Manual EN", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_en.pdf"},
|
||||||
|
{"name": "Schematic", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/ibom.html"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": -1,
|
"miso": -1,
|
||||||
"mosi": -1,
|
"mosi": -1,
|
||||||
@ -49,6 +61,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "NRF, Display",
|
"name": "NRF, Display",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://shop.blinkyparts.com/de/OpenDTU-NRF-Deine-Auswertung-fuer-deine-Balkonsolaranlage-kompatibel-zu-Hoymiles-HM-Serie-NRF-Modul/blink237542"},
|
||||||
|
{"name": "Manual DE", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_de.pdf"},
|
||||||
|
{"name": "Manual EN", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_en.pdf"},
|
||||||
|
{"name": "Schematic", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/ibom.html"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 19,
|
"miso": 19,
|
||||||
"mosi": 23,
|
"mosi": 23,
|
||||||
@ -65,6 +83,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CMT, Display",
|
"name": "CMT, Display",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://shop.blinkyparts.com/de/OpenDTU-CMT-Deine-Auswertung-fuer-deine-Balkonsolaranlage-kompatibel-zu-Hoymiles-HMS-und-HMT-Serie-CMT-Modul/blink238342"},
|
||||||
|
{"name": "Manual DE", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_de.pdf"},
|
||||||
|
{"name": "Manual EN", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_en.pdf"},
|
||||||
|
{"name": "Schematic", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/ibom.html"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": -1,
|
"miso": -1,
|
||||||
"mosi": -1,
|
"mosi": -1,
|
||||||
@ -89,6 +113,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "NRF, LEDs",
|
"name": "NRF, LEDs",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://shop.blinkyparts.com/de/OpenDTU-NRF-Deine-Auswertung-fuer-deine-Balkonsolaranlage-kompatibel-zu-Hoymiles-HM-Serie-NRF-Modul/blink237542"},
|
||||||
|
{"name": "Manual DE", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_de.pdf"},
|
||||||
|
{"name": "Manual EN", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_en.pdf"},
|
||||||
|
{"name": "Schematic", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/ibom.html"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 19,
|
"miso": 19,
|
||||||
"mosi": 23,
|
"mosi": 23,
|
||||||
@ -104,6 +134,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CMT, LEDs",
|
"name": "CMT, LEDs",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://shop.blinkyparts.com/de/OpenDTU-CMT-Deine-Auswertung-fuer-deine-Balkonsolaranlage-kompatibel-zu-Hoymiles-HMS-und-HMT-Serie-CMT-Modul/blink238342"},
|
||||||
|
{"name": "Manual DE", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_de.pdf"},
|
||||||
|
{"name": "Manual EN", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_en.pdf"},
|
||||||
|
{"name": "Schematic", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/ibom.html"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": -1,
|
"miso": -1,
|
||||||
"mosi": -1,
|
"mosi": -1,
|
||||||
@ -127,6 +163,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "NRF",
|
"name": "NRF",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://shop.blinkyparts.com/de/OpenDTU-NRF-Deine-Auswertung-fuer-deine-Balkonsolaranlage-kompatibel-zu-Hoymiles-HM-Serie-NRF-Modul/blink237542"},
|
||||||
|
{"name": "Manual DE", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_de.pdf"},
|
||||||
|
{"name": "Manual EN", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_en.pdf"},
|
||||||
|
{"name": "Schematic", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/ibom.html"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 19,
|
"miso": 19,
|
||||||
"mosi": 23,
|
"mosi": 23,
|
||||||
@ -138,6 +180,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "CMT",
|
"name": "CMT",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://shop.blinkyparts.com/de/OpenDTU-CMT-Deine-Auswertung-fuer-deine-Balkonsolaranlage-kompatibel-zu-Hoymiles-HMS-und-HMT-Serie-CMT-Modul/blink238342"},
|
||||||
|
{"name": "Manual DE", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_de.pdf"},
|
||||||
|
{"name": "Manual EN", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/manual/OpenDTU_Breakout_en.pdf"},
|
||||||
|
{"name": "Schematic", "url": "https://binary-kitchen.github.io/SolderingTutorial/OpenDTU_Breakout/ibom.html"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": -1,
|
"miso": -1,
|
||||||
"mosi": -1,
|
"mosi": -1,
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Esp32-Stick-PoE-A",
|
"name": "Esp32-Stick-PoE-A",
|
||||||
|
"links": [
|
||||||
|
{"name": "Information", "url": "https://github.com/allexoK/Esp32-Stick-Boards-Docs"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 2,
|
"miso": 2,
|
||||||
"mosi": 15,
|
"mosi": 15,
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "LILYGO TTGO T-Internet-POE",
|
"name": "LILYGO TTGO T-Internet-POE",
|
||||||
|
"links": [
|
||||||
|
{"name": "Datasheet", "url": "https://www.lilygo.cc/products/t-internet-poe"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 2,
|
"miso": 2,
|
||||||
"mosi": 15,
|
"mosi": 15,
|
||||||
@ -21,6 +24,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "LILYGO TTGO T-Internet-POE, nrf24 direct solder",
|
"name": "LILYGO TTGO T-Internet-POE, nrf24 direct solder",
|
||||||
|
"links": [
|
||||||
|
{"name": "Datasheet", "url": "https://www.lilygo.cc/products/t-internet-poe"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 12,
|
"miso": 12,
|
||||||
"mosi": 4,
|
"mosi": 4,
|
||||||
@ -41,6 +47,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "LILYGO TTGO T-Internet-POE, nrf24 direct solder, SSD1306",
|
"name": "LILYGO TTGO T-Internet-POE, nrf24 direct solder, SSD1306",
|
||||||
|
"links": [
|
||||||
|
{"name": "Datasheet", "url": "https://www.lilygo.cc/products/t-internet-poe"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 12,
|
"miso": 12,
|
||||||
"mosi": 4,
|
"mosi": 4,
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Olimex ESP32-EVB",
|
"name": "Olimex ESP32-EVB",
|
||||||
|
"links": [
|
||||||
|
{ "name": "Datasheet", "url": "https://www.olimex.com/Products/IoT/ESP32/ESP32-EVB/open-source-hardware" }
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 15,
|
"miso": 15,
|
||||||
"mosi": 2,
|
"mosi": 2,
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Olimex ESP32-POE",
|
"name": "Olimex ESP32-POE",
|
||||||
|
"links": [
|
||||||
|
{"name": "Datasheet", "url": "https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 15,
|
"miso": 15,
|
||||||
"mosi": 2,
|
"mosi": 2,
|
||||||
@ -21,6 +24,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Olimex ESP32-POE with SSD1306",
|
"name": "Olimex ESP32-POE with SSD1306",
|
||||||
|
"links": [
|
||||||
|
{"name": "Datasheet", "url": "https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 15,
|
"miso": 15,
|
||||||
"mosi": 2,
|
"mosi": 2,
|
||||||
@ -46,6 +52,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Olimex ESP32-POE with SH1106",
|
"name": "Olimex ESP32-POE with SH1106",
|
||||||
|
"links": [
|
||||||
|
{"name": "Datasheet", "url": "https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 15,
|
"miso": 15,
|
||||||
"mosi": 2,
|
"mosi": 2,
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "WT32-ETH01",
|
"name": "WT32-ETH01",
|
||||||
|
"links": [
|
||||||
|
{"name": "Datasheet", "url": "http://www.wireless-tag.com/portfolio/wt32-eth01/"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 4,
|
"miso": 4,
|
||||||
"mosi": 2,
|
"mosi": 2,
|
||||||
@ -21,6 +24,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "WT32-ETH01 with SSD1306",
|
"name": "WT32-ETH01 with SSD1306",
|
||||||
|
"links": [
|
||||||
|
{"name": "Datasheet", "url": "http://www.wireless-tag.com/portfolio/wt32-eth01/"}
|
||||||
|
],
|
||||||
"nrf24": {
|
"nrf24": {
|
||||||
"miso": 4,
|
"miso": 4,
|
||||||
"mosi": 2,
|
"mosi": 2,
|
||||||
|
|||||||
@ -59,7 +59,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
let total: Array<string> = [];
|
let total: Array<string> = [];
|
||||||
total = total.concat(curArray, selArray);
|
total = total.concat(curArray, selArray);
|
||||||
return Array.from(new Set(total)).filter(cat => cat != 'name').sort();
|
return Array.from(new Set(total)).filter(cat => cat != 'name' && cat != 'links').sort();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -34,8 +34,14 @@ export interface Display {
|
|||||||
reset: number;
|
reset: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Links {
|
||||||
|
name: string;
|
||||||
|
url: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface Device {
|
export interface Device {
|
||||||
name: string;
|
name: string;
|
||||||
|
links: Array<Links>;
|
||||||
nrf24: Nrf24;
|
nrf24: Nrf24;
|
||||||
cmt: Cmt2300;
|
cmt: Cmt2300;
|
||||||
eth: Ethernet;
|
eth: Ethernet;
|
||||||
|
|||||||
@ -36,6 +36,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row mb-3">
|
||||||
|
<div class="col-sm-2"></div>
|
||||||
|
<div class="col-sm-10">
|
||||||
|
<div class="btn-group" v-for="doc in pinMappingList.find(i => i.name === deviceConfigList.curPin.name)?.links">
|
||||||
|
<a :href="doc.url" class="btn btn-primary" target="_blank">{{ doc.name }}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-danger mt-3" role="alert" v-html="$t('deviceadmin.ProfileHint')">
|
<div class="alert alert-danger mt-3" role="alert" v-html="$t('deviceadmin.ProfileHint')">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user