diff --git a/src/makers/index.ts b/src/makers/index.ts index bf02fe967..f28118b83 100644 --- a/src/makers/index.ts +++ b/src/makers/index.ts @@ -21,7 +21,8 @@ import freedomfi from './freedomfi' import hummingbird from './hummingbird' import merryIoT from './merryIoT' import milesight from './milesight' -import deepernetwork from './deepernetwork' +import deepernetwork from './deepernetwork' +import ospreyElectronics from './ospreyElectronics' import { LangType, supportedLangs } from '../utils/i18n/i18nTypes' import { HotspotMakerLangField } from './hotspotMakerTypes' @@ -48,6 +49,7 @@ export const Makers: Record = { merryIoT, milesight, deepernetwork, + ospreyElectronics, } export const AntennaModels = { @@ -75,6 +77,7 @@ export const AntennaModels = { ...merryIoT.antennas, ...milesight.antennas, ...deepernetwork.antennas, + ...ospreyElectronics.antennas, } export const HotspotMakerModels = { @@ -100,6 +103,7 @@ export const HotspotMakerModels = { ...merryIoT.hotspots, ...milesight.hotspots, ...deepernetwork.hotspots, + ...ospreyElectronics.hotspots, } export type HotspotType = keyof typeof HotspotMakerModels @@ -138,3 +142,4 @@ export const getMakerSupportEmail = (makerId?: number): string => { const makerKey = Object.keys(Makers).find((m) => Makers[m].id === makerId) return makerKey ? Makers[makerKey].supportEmail : 'support@helium.com' } + diff --git a/src/makers/ospreyElectronics/antennas.ts b/src/makers/ospreyElectronics/antennas.ts new file mode 100644 index 000000000..96b23e580 --- /dev/null +++ b/src/makers/ospreyElectronics/antennas.ts @@ -0,0 +1,13 @@ +import { MakerAntenna } from '../antennaMakerTypes' + +const ELECTRONICS_HOTSPOT_US = { + name: 'Osprey Electronics Hotspot (US 915)', + gain: 1.2, +} as MakerAntenna + +const ELECTRONICS_HOTSPOT_EU = { + name: 'Osprey Electronics Hotspot (EU 868)', + gain: 2.3, +} as MakerAntenna + +export default { ELECTRONICS_HOTSPOT_US, ELECTRONICS_HOTSPOT_EU } diff --git a/src/makers/ospreyElectronics/hotspots.ts b/src/makers/ospreyElectronics/hotspots.ts new file mode 100644 index 000000000..40edf03c4 --- /dev/null +++ b/src/makers/ospreyElectronics/hotspots.ts @@ -0,0 +1,32 @@ +import HotspotIcon from './icon.svg' +import { MakerHotspot } from '../hotspotMakerTypes' +import ANTENNAS from './antennas' + +const OspreyHotspotBLE = { + name: 'Osprey Electronics Hotspot', + icon: HotspotIcon, + onboardType: 'BLE', + translations: { + en: { + diagnostic: + 'Diagnostic support allows Osprey Electronic to identify issues with your Hotspot in a secure way.\n\n Osprey Electronic will never have access to private keys and will only ever be able to access your Hotspot and not any other devices on your Network.\n\nIf you would like to opt-out of diagnostic support please email support@ingenioussafety.com from the email used to purchase the Hotspot.', + power: [ + 'Plug in the power cable as described in the user manual.', + '', + ], + bluetooth: [ + 'There is no pairing button on the Osprey Electronic Hotspot Miner.', + 'Bluetooth is automatically enabled for 5 minutes after the Osprey Electronic Hotspot Miner is powered on.\n\nHotspot can take up to 1 minute to fully boot up.', + ], + }, + ja: {}, + ko: {}, + zh: {}, + }, + antenna: { + us: ANTENNAS.ELECTRONICS_HOTSPOT_US, + default: ANTENNAS.ELECTRONICS_HOTSPOT_EU, + }, +} as MakerHotspot + +export default { OspreyHotspotBLE } diff --git a/src/makers/ospreyElectronics/icon.svg b/src/makers/ospreyElectronics/icon.svg new file mode 100644 index 000000000..a96e7d3ba --- /dev/null +++ b/src/makers/ospreyElectronics/icon.svg @@ -0,0 +1,1414 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/makers/ospreyElectronics/index.ts b/src/makers/ospreyElectronics/index.ts new file mode 100644 index 000000000..93efb0322 --- /dev/null +++ b/src/makers/ospreyElectronics/index.ts @@ -0,0 +1,9 @@ +import antennas from './antennas' +import hotspots from './hotspots' + +export default { + antennas, + hotspots, + id: 99999, // TODO: Get maker id from onboarding server + supportEmail: 'support@ingenioussafety.com', +}