Inclusion Criteria:  Patient with a chronic respiratory pathology such as: Newly diagnosed OSA with indication for CPAP treatment And/or COPD with or without indication for NIV/oxygen therapy Have a smartphone (with Android or iOS) allowing the installation of applications for connected objects Be able to use a mobile application on a personal smartphone Person agreeing to the telemonitoring of CPAP or NIV/oxygen therapy compliance data by the healthcare provider Patient who has provided consent to participate in the study Person affiliated to the social security  Exclusion Criteria:  Pregnant or breastfeeding woman Patient unable to give consent to participate in the study Patient under guardianship or curatorship Patient not affiliated to the social security system Patient deprived of liberty or hospitalized Patient protected by law Patient under administrative or judicial control Patient currently participating in another clinical research study that may have an impact on the study, this impact is left to the discretion of the investigator